fix: keep container overview mounted

This commit is contained in:
2026-09-08 22:35:07 +08:00
parent 9a61f57f9e
commit 43604b951d
2 changed files with 11 additions and 5 deletions
@@ -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"')