dedsudiyu 9 months ago
parent
commit
a5509fbdcd
1 changed files with 7 additions and 9 deletions
  1. 7 9
      src/App.vue

+ 7 - 9
src/App.vue

@@ -79,17 +79,15 @@
           getFilesName().then(res=>{
           getFilesName().then(res=>{
             if(res){
             if(res){
               if(res !== process.env.VUE_APP_RENEWAL_ENCODING){
               if(res !== process.env.VUE_APP_RENEWAL_ENCODING){
-                MessageBox.confirm('发现新版本,点击确定后将刷新页面.', '系统提示', {
-                    confirmButtonText: '确定',
-                    showCancelButton:false,
-                    closeOnClickModal:false,
-                    cancelButtonText: '取消',
-                    type: 'warning'
-                  }
-                ).then(() => {
+                this.$confirm('发现新版本,是否立即刷新页面?', '提示', {
+                  confirmButtonText: '确定',
+                  cancelButtonText: '取消',
+                  type: 'warning'
+                }).then(() => {
                   clearInterval(self.timer);
                   clearInterval(self.timer);
                   window.location.reload();
                   window.location.reload();
-                }).catch(() => {});
+                }).catch(() => {
+                });
               }
               }
             }
             }
           });
           });