diff --git a/src/components.d.ts b/src/components.d.ts index f15b3f0..c3c224a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -23,8 +23,6 @@ declare module 'vue' { ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] 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'] ElDrawer: typeof import('element-plus/es')['ElDrawer'] ElDropdown: typeof import('element-plus/es')['ElDropdown'] diff --git a/src/modules/first-leg/routes.ts b/src/modules/first-leg/routes.ts index 9357aae..3a460a9 100644 --- a/src/modules/first-leg/routes.ts +++ b/src/modules/first-leg/routes.ts @@ -19,7 +19,7 @@ export const firstLegModule = { name: 'first-leg-order-create', component: () => import('./views/FirstLegOrderCreateHubView.vue'), 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', diff --git a/src/modules/first-leg/views/FirstLegOrdersView.test.mjs b/src/modules/first-leg/views/FirstLegOrdersView.test.mjs index 91503b0..dc90cbc 100644 --- a/src/modules/first-leg/views/FirstLegOrdersView.test.mjs +++ b/src/modules/first-leg/views/FirstLegOrdersView.test.mjs @@ -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', () => { - 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(createHubSource, //) assert.match(source, /router\.push\(\{ name: 'first-leg-order-create' \}\)/)