|
@@ -79,17 +79,15 @@
|
|
|
getFilesName().then(res=>{
|
|
|
if(res){
|
|
|
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);
|
|
|
window.location.reload();
|
|
|
- }).catch(() => {});
|
|
|
+ }).catch(() => {
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
});
|