2
0

perf: 路由重构

This commit is contained in:
TsMask
2024-11-29 17:18:45 +08:00
parent a57f669603
commit 4cbdc12f90
6 changed files with 48 additions and 70 deletions

View File

@@ -173,7 +173,6 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
/** Init static auth route */
async function initStaticAuthRoute() {
const { authRoutes: staticAuthRoutes } = createStaticRoutes();
debugger
if (authStore.isStaticSuper) {
addAuthRoutes(staticAuthRoutes);
} else {
@@ -190,7 +189,6 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
/** Init dynamic auth route */
async function initDynamicAuthRoute() {
const { data: routes, error } = await doGetUserRoutes();
debugger
if (!error) {
addAuthRoutes(routes);