自动检测国际化
continuous-integration/drone/push Build is passing Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-08-13 14:23:07 +08:00
parent 392ca13c16
commit 66260c5012
2 changed files with 3 additions and 3 deletions

View File

@ -530,11 +530,11 @@ async function VueInit() {
VueInit()
createVersionPolling({
appETagKey: "__APP_ETAG__",
pollingInterval: 5 * 1000, // 单位为毫秒
pollingInterval: 5 * 60 * 1000, // 单位为毫秒
silent: process.env.NODE_ENV === false, // 开发环境下不检测
onUpdate: (self) => {
// 当检测到有新版本时,执行的回调函数,可以在这里提示用户刷新页面
const result = confirm("页面有更新,点击确定刷新页面!");
const result = confirm(_vm.$t("versionPolling:tip"));
if (result) {
self.onRefresh();
} else {