feat(projects): does the configuration support automatic updates. close#612 (#617)

This commit is contained in:
青菜白玉汤
2024-09-03 16:52:38 +08:00
committed by GitHub
parent 9c012c7d13
commit 4c9f4e09b1
3 changed files with 10 additions and 1 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 () => {