perf: remove suffix of offline device count; optimize routes; optimize station Select option

This commit is contained in:
yangsy
2025-08-22 15:54:51 +08:00
parent 29ff837da8
commit 5d131ee1df
5 changed files with 240 additions and 27 deletions

View File

@@ -31,7 +31,17 @@ const router = createRouter({
},
{
path: 'log',
component: () => import('@/pages/log-page.vue'),
redirect: '/log/vimp-log',
children: [
{
path: 'vimp-log',
component: () => import('@/pages/vimp-log-page.vue'),
},
],
},
{
path: 'debug',
component: () => import('@/pages/debug-page.vue'),
},
{
path: '/:pathMatch(.*)*',
@@ -43,7 +53,7 @@ const router = createRouter({
],
});
const whiteList = ['/login'];
const whiteList = ['/login', '/debug'];
router.beforeEach((to, from, next) => {
const userStore = useUserStore();