From 43604b951d5ea97f06202b13a6db60da95fb76c6 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Tue, 8 Sep 2026 22:35:07 +0800 Subject: [PATCH] fix: keep container overview mounted --- .../pages/ContainerDetailView.test.ts | 6 ++++++ .../container-loading/pages/ContainerDetailView.vue | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/modules/container-loading/pages/ContainerDetailView.test.ts b/src/modules/container-loading/pages/ContainerDetailView.test.ts index b5bf2e55..6506f05d 100644 --- a/src/modules/container-loading/pages/ContainerDetailView.test.ts +++ b/src/modules/container-loading/pages/ContainerDetailView.test.ts @@ -49,6 +49,12 @@ describe('ContainerDetailView customs integration', () => { expect(source).toContain(':can-edit="false"') }) + it('keeps the loaded overview mounted while switching fee tabs', () => { + expect(source).toContain("v-show=\"activeTab === 'overview'\" class=\"detail-section surface-panel\" aria-labelledby=\"container-voyage-heading\"") + expect(source).toContain("v-if=\"isOverseas\" v-show=\"activeTab === 'overview'\"") + expect(source).not.toContain("v-if=\"activeTab === 'overview'\" class=\"detail-section surface-panel\"") + }) + it('separates domestic first-leg fees and connects the overseas fee lifecycle lazily', () => { expect(source).toContain('label="头程计费" name="first-leg-fees"') expect(source).toContain('label="尾程计费" name="last-leg-fees"') diff --git a/src/modules/container-loading/pages/ContainerDetailView.vue b/src/modules/container-loading/pages/ContainerDetailView.vue index bf1d8e43..9d4f9b90 100644 --- a/src/modules/container-loading/pages/ContainerDetailView.vue +++ b/src/modules/container-loading/pages/ContainerDetailView.vue @@ -409,26 +409,26 @@ onMounted(async () => { await load(); if (isOverseas.value && route.query.action