fix(账单流水): 清理银行账户流水旧页签 #1687

Open
qiuxiang wants to merge 1 commits from fix/qiuxiang-prune-bank-transactions-tab into main
2 changed files with 7 additions and 2 deletions

View File

@ -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) {
// 同一张页面(按路径去重)只保留一个标签,点击标签回到最近一次带筛选的地址。

View File

@ -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)
// 搜索框右侧的常用网址入口。