Skip to content

Commit

Permalink
refactor: 测试环境不显示声明
Browse files Browse the repository at this point in the history
  • Loading branch information
duan602728596 committed Aug 20, 2023
1 parent 1ab807b commit 5b47973
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/48tools/src/pages/Agreement/function/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const NOW_POWER_VERSION: '20230820' = '20230820';

/* 判断是否需要阅读声明 */
export function needToReadPower(): boolean {
if (globalThis.__INITIAL_STATE__.isTest) return false;

const userTourVersion: string | null = localStorage.getItem(NOW_POWER_VERSION_KEY);

return NOW_POWER_VERSION !== userTourVersion;
Expand Down

0 comments on commit 5b47973

Please sign in to comment.