Merge branch 'main' into main

This commit is contained in:
Loic Duong
2024-09-04 09:35:35 +07:00
committed by GitHub
5 changed files with 44 additions and 29 deletions

View File

@@ -1,8 +1,12 @@
import { h } from 'vue';
import { NButton } from 'naive-ui';
import { $t } from '../locales';
import { $t } from '@/locales';
export function setupAppVersionNotification() {
const canAutoUpdateApp = import.meta.env.VITE_AUTOMATICALLY_DETECT_UPDATE === 'Y';
if (!canAutoUpdateApp) return;
let isShow = false;
document.addEventListener('visibilitychange', async () => {

View File

@@ -107,6 +107,8 @@ declare namespace Env {
readonly VITE_SERVER_PORT?: number;
/** The port number used for previewing the application */
readonly VITE_PREVIEW_PORT?: number;
/** Whether to automatically detect updates after configuring application packaging */
readonly VITE_AUTOMATICALLY_DETECT_UPDATE?: CommonType.YesOrNo;
}
}