perf: remove suffix of offline device count; optimize routes; optimize station Select option
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user