优化
This commit is contained in:
@@ -30,6 +30,12 @@ describe('admin router access metadata', () => {
|
||||
expect(route?.meta.permission).toBe('platform:counterparty:list')
|
||||
})
|
||||
|
||||
it('protects the download center with its stable list permission', () => {
|
||||
const route = router.getRoutes().find((item) => item.name === 'download-center')
|
||||
expect(route?.path).toBe('/downloads')
|
||||
expect(route?.meta.permission).toBe('platform:download:list')
|
||||
})
|
||||
|
||||
it('protects enterprise reviews with the backend review menu permission', () => {
|
||||
const route = router.getRoutes().find((item) => item.name === 'enterprise-reviews')
|
||||
|
||||
|
||||
@@ -62,6 +62,12 @@ const router = createRouter({
|
||||
component: () => import('@/views/PartnersView.vue'),
|
||||
meta: { title: '往来单位', description: '维护客户、供应商及客户/供应商双重类型单位档案', permission: 'platform:counterparty:list' },
|
||||
},
|
||||
{
|
||||
path: 'downloads',
|
||||
name: 'download-center',
|
||||
component: () => import('@/views/DownloadCenterView.vue'),
|
||||
meta: { title: '下载中心', description: '查看异步导出任务并下载已生成文件', permission: 'platform:download:list' },
|
||||
},
|
||||
{
|
||||
path: 'system/users',
|
||||
name: 'users',
|
||||
|
||||
Reference in New Issue
Block a user