diff --git a/web/src/router/index.js b/web/src/router/index.js index 5ab6b9b..864b02b 100644 --- a/web/src/router/index.js +++ b/web/src/router/index.js @@ -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) } } diff --git a/web/src/views/client/route.js b/web/src/views/client/route.js index 766acbe..7e2ce3a 100644 --- a/web/src/views/client/route.js +++ b/web/src/views/client/route.js @@ -6,6 +6,7 @@ export default { component: Layout, redirect: '/client', meta: { + title: '客户端', order: 2, }, children: [ diff --git a/web/src/views/setting/route.js b/web/src/views/setting/route.js index e7b8815..699fec1 100644 --- a/web/src/views/setting/route.js +++ b/web/src/views/setting/route.js @@ -6,6 +6,7 @@ export default { component: Layout, redirect: '/setting', meta: { + title: '设置', order: 3, }, children: [ diff --git a/web/src/views/user/route.js b/web/src/views/user/route.js index fd3b9ad..96ee5fa 100644 --- a/web/src/views/user/route.js +++ b/web/src/views/user/route.js @@ -6,6 +6,7 @@ export default { component: Layout, redirect: '/user', meta: { + title: '管理员', order: 1, }, children: [ diff --git a/web/src/views/workbench/route.js b/web/src/views/workbench/route.js index 3c8f000..bdef141 100644 --- a/web/src/views/workbench/route.js +++ b/web/src/views/workbench/route.js @@ -6,6 +6,7 @@ export default { component: Layout, redirect: '/workbench', meta: { + title: '工作台', order: 0, }, children: [ diff --git a/web/stats.html b/web/stats.html new file mode 100644 index 0000000..ecc65f5 --- /dev/null +++ b/web/stats.html @@ -0,0 +1,4838 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + +