更新路由配置,修改店铺信息展示,登录拦截

This commit is contained in:
2025-02-08 15:52:52 +08:00
parent 16cd74fdd6
commit 6d3a3e7f91
35 changed files with 551 additions and 225 deletions

View File

@@ -47,14 +47,14 @@ export function setupPermission() {
}
}
} else {
next();
// // 未登录,判断是否在白名单中
// if (whiteList.includes(to.path)) {
// } else {
// // 不在白名单,重定向到登录页
// redirectToLogin(to, next);
// NProgress.done();
// }
// 未登录,判断是否在白名单中
if (whiteList.includes(to.path)) {
next();
} else {
// 不在白名单,重定向到登录页
redirectToLogin(to, next);
NProgress.done();
}
}
});