This commit is contained in:
张成
2025-10-08 19:59:17 +08:00
parent 8f36705282
commit 70d32e311b
3 changed files with 126 additions and 10 deletions

View File

@@ -26,7 +26,17 @@ Vue.use(AdminFramework, {
createPersistedState
})
// 添加自定义业务路由(可选
// 添加自定义组件映射(用于权限菜单中的组件路径
// 当后端返回的菜单包含这些路径时,会自动加载对应组件
AdminFramework.addComponentMap({
'business/product_list.vue': ProductList,
'business/product_list': ProductList
// 如果有更多业务组件,在这里添加:
// 'ball/games.vue': GamesComponent,
// 'order/pay_orders.vue': PayOrdersComponent,
})
// 添加自定义业务路由(手动添加的路由)
const businessRoutes = [
{
path: '/business/product',