整理代码

This commit is contained in:
2025-02-12 15:53:59 +08:00
parent a2c1ec0d1c
commit 2215b4bd50
9 changed files with 112 additions and 32 deletions

View File

@@ -101,7 +101,35 @@ export const constantRoutes = [
meta: { title: '添加接口', activeMenu: '/api' }
}
]
}
},
{
path: '/api/edit',
component: Layout,
hidden: true,
children: [
{
path: '',
component: () => import('@/views/test/api/edit'),
name: 'ApiEdit',
noCache: true,
meta: { title: '修改接口', activeMenu: '/api' }
}
]
},
{
path: '/api/import',
component: Layout,
hidden: true,
children: [
{
path: '',
component: () => import('@/views/test/api/import'),
name: 'ApiImport',
noCache: true,
meta: { title: '导入接口', activeMenu: '/api' }
}
]
},
]
// 动态路由,基于用户权限动态去加载