优化
This commit is contained in:
Vendored
-2
@@ -23,8 +23,6 @@ declare module 'vue' {
|
|||||||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
||||||
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
||||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||||
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
|
|
||||||
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
|
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
||||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export const firstLegModule = {
|
|||||||
name: 'first-leg-order-create',
|
name: 'first-leg-order-create',
|
||||||
component: () => import('./views/FirstLegOrderCreateHubView.vue'),
|
component: () => import('./views/FirstLegOrderCreateHubView.vue'),
|
||||||
release: 'active',
|
release: 'active',
|
||||||
meta: { title: '创建订单', workspaceTitle: '头程订单 · 新建', description: '填写发货、目的地和货物信息', permission: 'order:first-leg:create' },
|
meta: { title: '创建订单', workspaceTitle: '头程订单 · 新建', description: '填写发货、目的地和货物信息', permission: 'order:first-leg:create', keepAlive: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'orders/first-leg/:orderId/detail',
|
path: 'orders/first-leg/:orderId/detail',
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ test('routes the confirmed first-leg path to the implemented order view', () =>
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('opens order creation as a dedicated protected page while keeping draft editing in a large dialog', () => {
|
test('opens order creation as a dedicated protected page while keeping draft editing in a large dialog', () => {
|
||||||
assert.match(routerSource, /path: 'orders\/first-leg\/create'[\s\S]*?name: 'first-leg-order-create'[\s\S]*?release: 'active'[\s\S]*?permission: 'order:first-leg:create'/)
|
assert.match(routerSource, /path: 'orders\/first-leg\/create'[\s\S]*?name: 'first-leg-order-create'[\s\S]*?release: 'active'[\s\S]*?permission: 'order:first-leg:create'[\s\S]*?keepAlive: false/)
|
||||||
assert.match(routerSource, /name: 'first-leg-order-create'[\s\S]*?FirstLegOrderCreateHubView\.vue/)
|
assert.match(routerSource, /name: 'first-leg-order-create'[\s\S]*?FirstLegOrderCreateHubView\.vue/)
|
||||||
assert.match(createHubSource, /<FirstLegOrdersView v-if="activeMode === 'standard'" create-page \/>/)
|
assert.match(createHubSource, /<FirstLegOrdersView v-if="activeMode === 'standard'" create-page \/>/)
|
||||||
assert.match(source, /router\.push\(\{ name: 'first-leg-order-create' \}\)/)
|
assert.match(source, /router\.push\(\{ name: 'first-leg-order-create' \}\)/)
|
||||||
|
|||||||
Reference in New Issue
Block a user