chore: vip label translate

This commit is contained in:
xiaojunnuo
2025-06-29 17:41:54 +08:00
parent 2d1504a057
commit 3fb3cee423
7 changed files with 25 additions and 9 deletions
@@ -10,7 +10,7 @@ import { updatePreferences } from "/@/vben/preferences";
import { useTitle } from "@vueuse/core";
import { utils } from "/@/utils";
import { cloneDeep, merge } from "lodash-es";
import { useI18n } from "/src/locales";
export interface SettingState {
sysPublic?: SysPublicSetting;
installInfo?: {
@@ -129,10 +129,11 @@ export const useSettingStore = defineStore({
return this.isComm || this.isAgent;
},
vipLabel(): string {
const { t } = useI18n();
const vipLabelMap: any = {
free: "基础版",
plus: "专业版",
comm: "商业版",
free: t("vip.label.free"),
plus: t("vip.label.plus"),
comm: t("vip.label.comm"),
};
return vipLabelMap[this.plusInfo?.vipType || "free"];
},