Sfoglia il codice sorgente

自动关闭时间提前3秒

lifanagju_citu 6 mesi fa
parent
commit
4d36ce8b83
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/App.vue

+ 1 - 1
src/App.vue

@@ -32,7 +32,7 @@ const checkVersion = () => {
     // cache: 'no-store' // 禁用缓存
   }).then((res) => {
     if (res?.data?.data !== version) {
-      Confirm('系统提示', '发现新版本,是否立即刷新页面', { autoCloseTime }).then(() => {
+      Confirm('系统提示', '发现新版本,是否立即刷新页面', { autoCloseTime: autoCloseTime-3000 }).then(() => {
         window.location.reload()
       })
     }