sync(theme-3): 从 main 同步优胜赛结算态与钱包流水展示优化
- checkout shared/api/admin 自 d3c2114
- player: outright 结算态逻辑、wallet txAmountClass、i18n 新增 key(保留主题 CSS 变量)
This commit is contained in:
13
apps/admin/src/utils/adminListStale.ts
Normal file
13
apps/admin/src/utils/adminListStale.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
const STALE_KEY = 'admin:list-stale';
|
||||
|
||||
/** 标记赛事相关列表需在下次激活时刷新(结算/预览等变更后端统计后调用) */
|
||||
export function markAdminListStale() {
|
||||
sessionStorage.setItem(STALE_KEY, '1');
|
||||
}
|
||||
|
||||
/** 若曾标记过 stale 则清除标记并返回 true */
|
||||
export function consumeAdminListStale(): boolean {
|
||||
if (sessionStorage.getItem(STALE_KEY) !== '1') return false;
|
||||
sessionStorage.removeItem(STALE_KEY);
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user