fix: 修复执行日志没有清理的bug

This commit is contained in:
xiaojunnuo
2024-08-25 01:55:34 +08:00
parent 86ebbcb9bb
commit 22a336370a
14 changed files with 157 additions and 76 deletions
@@ -20,7 +20,7 @@ interface UserState {
}
interface PlusInfo {
level: number;
vipType: string;
expireTime: number;
isPlus: boolean;
}
@@ -49,7 +49,7 @@ export const useUserStore = defineStore({
return this.getUserInfo?.id === 1;
},
isPlus(): boolean {
return this.plusInfo?.isPlus || false;
return this.plusInfo?.isPlus && this.plusInfo?.expireTime > new Date().getTime();
}
},
actions: {