perf: 调整静态资源到static目录

This commit is contained in:
xiaojunnuo
2024-10-04 00:52:19 +08:00
parent a21889080d
commit 0584b3672b
59 changed files with 131 additions and 136 deletions
@@ -85,8 +85,11 @@ export const useSettingStore = defineStore({
const settings = await basicApi.getSysPublicSettings();
_.merge(this.sysPublic, settings);
const siteInfo = await basicApi.getSiteInfo();
_.merge(this.siteInfo, siteInfo);
const userStore = useUserStore();
if (userStore.isComm) {
const siteInfo = await basicApi.getSiteInfo();
_.merge(this.siteInfo, siteInfo);
}
await this.loadInstallInfo();
@@ -58,10 +58,10 @@ export const useUserStore = defineStore({
vipLabel(): string {
const vipLabelMap: any = {
free: "免费版",
vip: "专业版",
plus: "专业版",
comm: "商业版"
};
return vipLabelMap[this.plusInfo?.vipType];
return vipLabelMap[this.plusInfo?.vipType || "free"];
}
},
actions: {