1
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user