|
|
@@ -28,6 +28,12 @@ export default {
|
|
|
location.reload()
|
|
|
})
|
|
|
.catch(action => {
|
|
|
+ self.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: action === 'cancel'
|
|
|
+ ? 'Abandon'
|
|
|
+ : 'Stay on the current page'
|
|
|
+ })
|
|
|
})
|
|
|
} else {
|
|
|
self.$confirm('检测到系统更新,请刷新页面?', '📢 系统更新', {
|
|
|
@@ -41,6 +47,12 @@ export default {
|
|
|
location.reload()
|
|
|
})
|
|
|
.catch(action => {
|
|
|
+ self.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: action === 'cancel'
|
|
|
+ ? '放弃'
|
|
|
+ : '停留在当前页面'
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
})
|