fix(账单流水): 清理银行账户流水旧页签 (#1687)
This commit is contained in:
parent
75cba0dde9
commit
ac6ed8e693
@ -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) {
|
||||
// 同一张页面(按路径去重)只保留一个标签,点击标签回到最近一次带筛选的地址。
|
||||
|
||||
@ -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)
|
||||
// 搜索框右侧的常用网址入口。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user