fix: 系统引导跳转不重复引导

This commit is contained in:
TsMask
2024-08-03 10:09:16 +08:00
parent 8d8605e0cd
commit c1187383b6

View File

@@ -170,6 +170,10 @@ router.beforeEach(async (to, from, next) => {
if (appStore.bootloader && to.path !== '/quick-start') { if (appStore.bootloader && to.path !== '/quick-start') {
next({ name: 'QuickStart' }); next({ name: 'QuickStart' });
} }
// 不重复引导
if (!appStore.bootloader && to.path === '/quick-start') {
next({ name: 'Index' });
}
const token = getToken(); const token = getToken();