移除多余的前端页面 以及api

This commit is contained in:
jianzhichu
2025-12-08 12:45:30 +08:00
parent 772859eb63
commit 2550a1fde8
10 changed files with 12 additions and 201 deletions
+4 -13
View File
@@ -42,19 +42,10 @@ const dynamicinitRoute =
const InitGuard: NavigationGuard = function (to, from) {
if (to.fullPath != '/login') {
useApiStore()
.apiCheckInitStatus()
.then((res) => {
// console.log(to.fullPath)
if (res.code === 0) {
} else {
if (!router.hasRoute('login')) {
router.addRoute(dynamicinitRoute)
}
router.push('/login')
// return '/init'
}
});
if (!router.hasRoute('login')) {
router.addRoute(dynamicinitRoute)
}
router.push('/login')
}
};