<script setup>
import { RouterLink, RouterView } from 'vue-router'
import { onMounted } from 'vue'
import { useUserStore } from '@/stores/modules/user.js'
// 在根组件预先初始化用户 store
onMounted(() => {
  try {
    const userStore = useUserStore() 
  } catch (error) {
    console.warn('App.vue: Pinia 初始化中...', error)
  } 
})
</script>

<template>
    <RouterView />
</template>

<style lang="scss" scoped></style>
