mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
✨ 添加回正开关,默认开启
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @file store/modules/app.ts
|
||||
* @description App store module
|
||||
* @since Beta v0.5.2
|
||||
* @since Beta v0.5.3
|
||||
*/
|
||||
|
||||
import { path } from "@tauri-apps/api";
|
||||
@@ -50,6 +50,8 @@ export const useAppStore = defineStore(
|
||||
const lang = ref<AnnoLang>("zh-cn");
|
||||
// 最近的咨讯类型
|
||||
const recentNewsType = ref("notice");
|
||||
// 是否开启分辨率回正
|
||||
const needResize = ref<boolean | undefined>(true);
|
||||
|
||||
// 初始化
|
||||
function init(): void {
|
||||
@@ -61,6 +63,7 @@ export const useAppStore = defineStore(
|
||||
server.value = AnnoServer.CN_ISLAND;
|
||||
lang.value = "zh-cn";
|
||||
recentNewsType.value = "notice";
|
||||
needResize.value = true;
|
||||
initDevice();
|
||||
}
|
||||
|
||||
@@ -87,6 +90,7 @@ export const useAppStore = defineStore(
|
||||
server,
|
||||
lang,
|
||||
recentNewsType,
|
||||
needResize,
|
||||
init,
|
||||
changeTheme,
|
||||
};
|
||||
@@ -101,7 +105,7 @@ export const useAppStore = defineStore(
|
||||
{
|
||||
key: "app",
|
||||
storage: window.localStorage,
|
||||
paths: ["devMode", "loading", "buildTime", "isLogin"],
|
||||
paths: ["devMode", "loading", "buildTime", "isLogin", "needResize"],
|
||||
},
|
||||
{
|
||||
key: "sidebar",
|
||||
|
||||
Reference in New Issue
Block a user