|
@@ -79,15 +79,17 @@
|
|
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){
|
|
- this.$confirm('发现新版本,是否立即刷新页面?', '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning'
|
|
|
|
- }).then(() => {
|
|
|
|
|
|
+ MessageBox.confirm('发现新版本,是否立即刷新页面?', '系统提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ showCancelButton:true,
|
|
|
|
+ closeOnClickModal:false,
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }
|
|
|
|
+ ).then(() => {
|
|
clearInterval(self.timer);
|
|
clearInterval(self.timer);
|
|
window.location.reload();
|
|
window.location.reload();
|
|
- }).catch(() => {
|
|
|
|
- });
|
|
|
|
|
|
+ }).catch(() => {});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -119,10 +121,6 @@
|
|
//清除定时器
|
|
//清除定时器
|
|
clearInterval(this.timer);
|
|
clearInterval(this.timer);
|
|
},
|
|
},
|
|
- destroyed() {
|
|
|
|
- //清除定时器
|
|
|
|
- clearInterval(this.timer);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style>
|
|
<style>
|