mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-02 06:45:08 +08:00
🐛 修正isDevEnv判断逻辑
This commit is contained in:
@@ -330,8 +330,8 @@ const userStore = useUserStore();
|
||||
const { sidebar, theme, isLogin, recentNewsType, gameDir } = storeToRefs(useAppStore());
|
||||
const { uid, briefInfo, cookie, account } = storeToRefs(userStore);
|
||||
let themeListener: UnlistenFn | null = null;
|
||||
// @ts-expect-error The import.meta meta-property is not allowed in files which will build into CommonJS output.
|
||||
const isDevEnv = import.meta.env.MODE === "development";
|
||||
|
||||
const isDevEnv = proEnv.TAURI_ENV_DEBUG;
|
||||
const showFollow = ref<boolean>();
|
||||
const showLoginQr = ref<boolean>(false);
|
||||
const isTryLogin = ref<boolean>(false);
|
||||
|
||||
5
src/vite-env.d.ts
vendored
5
src/vite-env.d.ts
vendored
@@ -51,3 +51,8 @@ declare type TauriProcessEnv = NodeJS.ProcessEnv & {
|
||||
/** 平台类型,例如 `"desktop"`。 */
|
||||
TAURI_PLATFORM_TYPE?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* ProcessEnv的转换
|
||||
*/
|
||||
declare const proEnv: TauriProcessEnv;
|
||||
|
||||
Reference in New Issue
Block a user