优化
This commit is contained in:
@@ -53,6 +53,10 @@ test('keeps only implemented navigation groups visible', () => {
|
||||
title: '头程物流',
|
||||
children: ['订单列表'],
|
||||
},
|
||||
{
|
||||
title: '财务结算',
|
||||
children: ['客户账单'],
|
||||
},
|
||||
{
|
||||
title: '企业管理',
|
||||
children: ['企业资料', '企业成员', '角色管理', '菜单权限'],
|
||||
@@ -78,6 +82,7 @@ test('flattens visible leaves with unique paths', () => {
|
||||
assert.deepEqual(paths, [
|
||||
'/',
|
||||
'/orders/first-leg',
|
||||
'/finance/bills',
|
||||
'/company/profile',
|
||||
'/organization/members',
|
||||
'/organization/roles',
|
||||
@@ -299,7 +304,6 @@ test('keeps every prototype view cataloged with permission metadata but unreleas
|
||||
'cross-border',
|
||||
'overseas-warehouse',
|
||||
'order-management',
|
||||
'finance',
|
||||
].map((moduleName) => readFileSync(new URL(`../modules/${moduleName}/routes.ts`, import.meta.url), 'utf8')).join('\n')
|
||||
const routes = [
|
||||
['first-leg/import', 'BatchImportView.vue'],
|
||||
@@ -314,7 +318,6 @@ test('keeps every prototype view cataloged with permission metadata but unreleas
|
||||
['orders/my', 'MyOrdersView.vue'],
|
||||
['orders/inbound', 'InboundOrdersView.vue'],
|
||||
['orders/delivery', 'DeliveryOrdersView.vue'],
|
||||
['finance/payables', 'PayableBillsView.vue'],
|
||||
]
|
||||
|
||||
for (const [path, view] of routes) {
|
||||
|
||||
Reference in New Issue
Block a user