feat:更新侧边导航,修改密码等
This commit is contained in:
11
src/App.vue
11
src/App.vue
@@ -1,6 +1,15 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user