This commit is contained in:
parent
4fa123baa8
commit
45d83da5c7
@ -37,7 +37,6 @@ export async function addDynamicRoutes() {
|
||||
// 有token的情况
|
||||
const userStore = useUserStore()
|
||||
try {
|
||||
|
||||
const permissionStore = usePermissionStore()
|
||||
!userStore.id && (await userStore.getUserInfo())
|
||||
|
||||
@ -49,8 +48,8 @@ export async function addDynamicRoutes() {
|
||||
router.addRoute(NOT_FOUND_ROUTE)
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
$message.error('初始化用户信息失败: ' + error)
|
||||
userStore.logout()
|
||||
$message.error('初始化用户信息失败: ' + error)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,7 @@ export default {
|
||||
component: Layout,
|
||||
redirect: '/client',
|
||||
meta: {
|
||||
title: '客户端',
|
||||
order: 2,
|
||||
},
|
||||
children: [
|
||||
|
@ -6,6 +6,7 @@ export default {
|
||||
component: Layout,
|
||||
redirect: '/setting',
|
||||
meta: {
|
||||
title: '设置',
|
||||
order: 3,
|
||||
},
|
||||
children: [
|
||||
|
@ -6,6 +6,7 @@ export default {
|
||||
component: Layout,
|
||||
redirect: '/user',
|
||||
meta: {
|
||||
title: '管理员',
|
||||
order: 1,
|
||||
},
|
||||
children: [
|
||||
|
@ -6,6 +6,7 @@ export default {
|
||||
component: Layout,
|
||||
redirect: '/workbench',
|
||||
meta: {
|
||||
title: '工作台',
|
||||
order: 0,
|
||||
},
|
||||
children: [
|
||||
|
4838
web/stats.html
Normal file
4838
web/stats.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user