chore: buy

This commit is contained in:
xiaojunnuo
2025-11-09 00:12:31 +08:00
parent 0c99f41bd9
commit c31eef6b82
4 changed files with 99 additions and 36 deletions

View File

@@ -126,6 +126,9 @@ export const useSettingStore = defineStore({
getInstallInfo(): SysInstallInfo {
return this.installInfo;
},
isPerpetual(): boolean {
return this.plusInfo?.isPlus && this.plusInfo?.expireTime === -1;
},
isPlus(): boolean {
return this.plusInfo?.isPlus && (this.plusInfo?.expireTime === -1 || this.plusInfo?.expireTime > new Date().getTime());
},