调试frontend

This commit is contained in:
2026-07-21 14:04:49 +08:00
parent dd1e55aea3
commit b45152599e
18 changed files with 1840 additions and 1382 deletions
+15
View File
@@ -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();