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

Commit 13925f0c by 张欣玥

image&layer添加返回前提示

parent 200fe3c3
...@@ -308,6 +308,11 @@ export default { ...@@ -308,6 +308,11 @@ export default {
created () { created () {
}, },
beforeRouteLeave: function(to, from , next){
alert("返回后未保存的标注结果将会消失,请确认已保存!")
this.$destroy();
next();
},
watch: { watch: {
radio1: function f () { radio1: function f () {
if (this.radio1 == '矩形标注') { if (this.radio1 == '矩形标注') {
......
...@@ -205,6 +205,11 @@ ...@@ -205,6 +205,11 @@
this.init() this.init()
this.restore() this.restore()
}, },
beforeRouteLeave: function(to, from , next){
alert("返回后未保存的标注结果将会消失,请确认已保存!")
this.$destroy();
next();
},
watch: { watch: {
radio1: function f () { radio1: function f () {
if (this.radio1 == '地标') { if (this.radio1 == '地标') {
......
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