feat(fsgx): 管理后台与部署相关更新
- admin: 路由守卫修复空白页、addRoute、devServer 端口与代理 - admin: package.json 生产构建去掉 NODE_OPTIONS openssl - ajcaptcha: 滑块验证码改用 file 缓存避免 Redis NOAUTH - nginx-crmeb: 增加 81 端口站点 - docs: deploy 补充 NOAUTH/Redis 说明,新增 H5 部署脚本与 nginx 示例 - 其他: database、start-api、swoole ini、uniapp 资源等 Made-with: Cursor
This commit is contained in:
@@ -79,7 +79,7 @@ const router = new VueRouter({
|
||||
routes: [...routes],
|
||||
mode: Setting.routerMode,
|
||||
});
|
||||
router.addRoutes(supplierRoutes);
|
||||
supplierRoutes.forEach((route) => router.addRoute(route));
|
||||
setTimeout(() => {
|
||||
console.log(router, "11");
|
||||
}, 1000);
|
||||
@@ -140,6 +140,8 @@ function handlePublicRoute(to, next) {
|
||||
if (hasMenus || isLoginPage) {
|
||||
return next();
|
||||
}
|
||||
// 无菜单且非登录页时,重定向到登录页(修复空白页:此前未调用 next() 导致导航挂起)
|
||||
next({ path: `${Setting.roterPre}/login`, query: { redirect: to.fullPath } });
|
||||
}
|
||||
router.afterEach((to) => {
|
||||
// if (Setting.showProgressBar) iView.LoadingBar.finish();
|
||||
|
||||
Reference in New Issue
Block a user