马宇豪
2024-11-12 77737f4e73f7267170b9b06fc73d1610c29c0661
src/router/index.ts
@@ -83,7 +83,10 @@
        } else if (token && to.path === '/newMenu') {
            next();
            NProgress.done();
        } else {
        } else if (token && (to.path === '/warningScreen' || to.path === '/screenPage')) {
            next();
            NProgress.done();
        }else {
            const storesRoutesList = useRoutesList(pinia);
            const { routesList } = storeToRefs(storesRoutesList);
            if (routesList.value.length === 0) {