文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 36eb73ed by 张欣玥

改了image&layer布局,修改了离开前弹窗的逻辑

parent c16f9aad
...@@ -310,16 +310,22 @@ export default { ...@@ -310,16 +310,22 @@ export default {
}, },
beforeRouteLeave: function(to, from , next){ beforeRouteLeave: function(to, from , next){
// alert("返回后未保存的标注结果将会消失,请确认已保存!") // alert("返回后未保存的标注结果将会消失,请确认已保存!")
let i = 0
this.$confirm('返回后未保存的标注结果将会消失,请确认已保存!', '提示', { this.$confirm('返回后未保存的标注结果将会消失,请确认已保存!', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$destroy(); this.$destroy()
next(); next()
}).catch(() => { }).catch(() => {
i = 1
})
}); if (i == 0) {
this.$destroy()
next()
}
// this.$destroy(); // this.$destroy();
// next(); // next();
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment