修复BUG: 无任何菜单权限时,无法进入首页问题

This commit is contained in:
猿小天
2024-05-09 11:24:33 +08:00
parent e6f898bef4
commit 49d56f6378

View File

@@ -49,7 +49,7 @@ export async function initBackEndControlRoutes() {
const res = await getBackEndControlRoutes();
// 无登录权限时,添加判断
// https://gitee.com/lyt-top/vue-next-admin/issues/I64HVO
if (res.data.length <= 0) return Promise.resolve(true);
// if (res.data.length <= 0) return Promise.resolve(true);
// 处理路由component替换 dynamicRoutes/@/router/route第一个顶级 children 的路由
const {frameIn,frameOut} = handleMenu(res.data)
dynamicRoutes[0].children = await backEndComponent(frameIn);