🐛 fix TGApp is not defined

This commit is contained in:
目棃
2024-12-06 18:54:25 +08:00
parent 6a3d2d6b36
commit d15cece933
3 changed files with 19 additions and 36 deletions

View File

@@ -18,6 +18,14 @@ const dbDataPath = `${await path.appConfigDir()}${path.sep()}TeyvatGuide.db`;
// 用于存放日志的路径
const logDataDir = await path.appLogDir();
export enum NewsTypeEnum {
notice = "1",
activity = "2",
news = "3",
}
export type NewsType = keyof typeof NewsTypeEnum;
export const useAppStore = defineStore(
"app",
() => {
@@ -46,7 +54,7 @@ export const useAppStore = defineStore(
// 语言
const lang = ref<AnnoLang>("zh-cn");
// 最近的咨讯类型
const recentNewsType = ref<TGApp.App.Store.NewsType>("notice");
const recentNewsType = ref<NewsType>("notice");
// 是否开启分辨率回正
const needResize = ref<string>("true");
// 分享图生成默认设置为0表示默认保存到文件为数字表示当大小超过xMB时保存到文件否则保存到剪贴板