大屏页面初始化

This commit is contained in:
2026-02-27 13:59:38 +08:00
parent 381b5c6460
commit 368127ae19
11 changed files with 55 additions and 1525 deletions

View File

@@ -51,12 +51,12 @@ router.beforeEach((to, from, next) => {
try {
const token = localStorage.getItem('token')
if (token && token.trim() !== '') {
next()
next();
} else {
next({ path: '/login', query: { redirect: to.fullPath } })
next({ path: '/login', query: { redirect: to.fullPath } });
}
} catch (error) {
next('/login')
next('/login');
}
})