diff --git a/src/modules/container-loading/components/ContainerSimulationCreate.test.ts b/src/modules/container-loading/components/ContainerSimulationCreate.test.ts index 63ad7007..5bb68189 100644 --- a/src/modules/container-loading/components/ContainerSimulationCreate.test.ts +++ b/src/modules/container-loading/components/ContainerSimulationCreate.test.ts @@ -23,6 +23,7 @@ describe('ContainerSimulationCreate opted-in form', () => { await wrapper.findAll('button').find(button => button.text().includes('新增模拟柜'))!.trigger('click') await flushPromises() const dialog = wrapper.findComponent(AppDialog) + expect(dialog.props('width')).toBe(dense ? 'min(1000px, calc(100vw - 28px))' : 'min(560px, calc(100vw - 28px))') dialog.vm.$emit('confirm') await flushPromises() expect(createContainerSimulation).not.toHaveBeenCalled() diff --git a/src/modules/container-loading/components/ContainerSimulationCreate.vue b/src/modules/container-loading/components/ContainerSimulationCreate.vue index 14ef5f95..f56b151c 100644 --- a/src/modules/container-loading/components/ContainerSimulationCreate.vue +++ b/src/modules/container-loading/components/ContainerSimulationCreate.vue @@ -95,7 +95,7 @@ async function saveSimulation() {