调试frontend
This commit is contained in:
@@ -3,6 +3,19 @@ import { convertMenusToRoutes } from "./dynamicRoutes";
|
||||
|
||||
// 静态子路由:需要在 Main 框架内显示的页面
|
||||
const staticMainChildren = [
|
||||
// CMS 文章中心是系统内置功能,不依赖数据库菜单配置。
|
||||
{
|
||||
path: "/apps/cms/articles",
|
||||
name: "CmsArticles",
|
||||
component: () => import("@/views/apps/cms/articles/index.vue"),
|
||||
meta: { requiresAuth: true, title: "文章管理", modulePath: "/apps/cms" }
|
||||
},
|
||||
{
|
||||
path: "/apps/cms/articles/category",
|
||||
name: "CmsArticleCategories",
|
||||
component: () => import("@/views/apps/cms/articles/category.vue"),
|
||||
meta: { requiresAuth: true, title: "文章分类", modulePath: "/apps/cms" }
|
||||
},
|
||||
{
|
||||
path: "/user/userProfile",
|
||||
name: "userProfile",
|
||||
@@ -90,6 +103,8 @@ export async function loadAndAddDynamicRoutes() {
|
||||
routesLoadingPromise = null;
|
||||
return Promise.resolve();
|
||||
} else {
|
||||
// 即使权限菜单为空,也要注册内置文章中心路由。
|
||||
addDynamicRoutes([]);
|
||||
dynamicRoutesAdded = true;
|
||||
routesLoadingPromise = null;
|
||||
return Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user