<!-- 微信扫码登录回调页（第一版已注释，待后续启用） -->
<!--
<script setup lang="ts">
import { onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { useAuthStore } from '../../stores/auth'
import { api, setAccessToken } from '../../api/client'

const route = useRoute()
const router = useRouter()
const auth = useAuthStore()

onMounted(async () => {
  const accessToken = route.query.access_token as string

  if (!accessToken) {
    router.push('/auth/login')
    return
  }

  setAccessToken(accessToken)
  auth.$patch({ accessToken })

  try {
    const meRes = await api.get('/auth/me')
    auth.$patch({ user: meRes.data, initialized: true })
    router.push('/app/feed')
  } catch {
    auth.logout()
  }
})
</script>

<template>
  <div style="display:flex;align-items:center;justify-content:center;min-height:100vh;color:#999;font-size:14px">
    微信登录中…
  </div>
</template>
-->
<template><div></div></template>
