mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
fix: 修复执行日志没有清理的bug
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user