From ac6ed8e6935fa8f4801260c7bfe5fd40dfdd87eb Mon Sep 17 00:00:00 2001 From: qiuxiang <394405259@qq.com> Date: Thu, 3 Dec 2026 13:38:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=B4=A6=E5=8D=95=E6=B5=81=E6=B0=B4):=20?= =?UTF-8?q?=E6=B8=85=E7=90=86=E9=93=B6=E8=A1=8C=E8=B4=A6=E6=88=B7=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E6=97=A7=E9=A1=B5=E7=AD=BE=20(#1687)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/pages/partials/open-page-tabs.blade.php | 8 ++++++-- tests/Feature/Settings/NavigationTest.php | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/views/business/pages/partials/open-page-tabs.blade.php b/resources/views/business/pages/partials/open-page-tabs.blade.php index 0741d771b..3892761eb 100644 --- a/resources/views/business/pages/partials/open-page-tabs.blade.php +++ b/resources/views/business/pages/partials/open-page-tabs.blade.php @@ -125,9 +125,13 @@ } })(); - // 安装费汇总已并入安装明细子页;清理旧会话中残留的独立顶栏标签。 + // 已并入其他页面或已下线的旧页面,清理当前浏览器会话里残留的顶栏标签。 const legacyInstallationSummaryPath = /^\/\d+\/workspace\/financial-operations\/installation-fee-summary\/?$/; - let items = read().filter((item) => !legacyInstallationSummaryPath.test(item.path)); + const removedBankTransactionsPath = /^\/\d+\/workspace\/billing-transactions\/bank-transactions\/?$/; + let items = read().filter((item) => ( + !legacyInstallationSummaryPath.test(item.path) + && !removedBankTransactionsPath.test(item.path) + )); save(items); if (isBusinessPage) { // 同一张页面(按路径去重)只保留一个标签,点击标签回到最近一次带筛选的地址。 diff --git a/tests/Feature/Settings/NavigationTest.php b/tests/Feature/Settings/NavigationTest.php index f98ae113f..b0cea033e 100644 --- a/tests/Feature/Settings/NavigationTest.php +++ b/tests/Feature/Settings/NavigationTest.php @@ -634,6 +634,7 @@ class NavigationTest extends FeatureTestCase ->assertSee('caiwu.open-pages.v1.', false) ->assertSee('legacyInstallationSummaryPath', false) ->assertSee('installation-fee-summary', false) + ->assertSee('removedBankTransactionsPath', false) // 目录 iframe 里的子页面不再重复渲染这条标签栏。 ->assertSee('window.self !== window.top', false) // 搜索框右侧的常用网址入口。