feat: 全局获取userinfo、数据持久化、store处理

This commit is contained in:
renxiaodong
2025-06-23 22:03:57 -04:00
parent 55198613a8
commit 59dac3bb13
10 changed files with 104 additions and 75 deletions

View File

@ -32,24 +32,6 @@ const router = createRouter({
requiresAuth: true,
},
},
{
path: '/',
name: 'Home',
redirect: '/dataEngine/hotTranslation',
children: [...appRoutes, REDIRECT_MAIN, NOT_FOUND_ROUTE],
meta: {
requiresAuth: true,
},
},
// {
// path: '/dataEngine',
// name: 'dataEngine',
// redirect: '/dataEngine/hotTranslation',
// children: [...appRoutes, REDIRECT_MAIN, NOT_FOUND_ROUTE],
// meta: {
// requiresAuth: 1,
// },
// },
{
path: '/permission',
name: 'permission',
@ -66,6 +48,15 @@ const router = createRouter({
requiresAuth: false,
},
},
{
path: '/',
name: 'Home',
redirect: '/dataEngine/hotTranslation',
children: [...appRoutes, REDIRECT_MAIN, NOT_FOUND_ROUTE],
meta: {
requiresAuth: true,
},
},
],
scrollBehavior() {
return { top: 0 };