Commit 117d0412 authored by xxx's avatar xxx

修改退出时接口继续调用问题

parent cff156e5
...@@ -78,7 +78,12 @@ export default { ...@@ -78,7 +78,12 @@ export default {
} }
}, },
destroy() { // destroy() {
// this[`map${this.mapKey}`].destroy()
// delete this[`map${this.mapKey}`]
// },
beforeDestroy() {
this[`map${this.mapKey}`].destroy() this[`map${this.mapKey}`].destroy()
delete this[`map${this.mapKey}`] delete this[`map${this.mapKey}`]
}, },
......
...@@ -172,6 +172,7 @@ export default { ...@@ -172,6 +172,7 @@ export default {
history.pushState(null, null, document.URL); history.pushState(null, null, document.URL);
},false },false
); );
window.location.reload();
}, },
//修改密码 //修改密码
changePassword(){ changePassword(){
...@@ -255,6 +256,7 @@ export default { ...@@ -255,6 +256,7 @@ export default {
history.pushState(null, null, document.URL); history.pushState(null, null, document.URL);
},false },false
); );
window.location.reload();
}, 1500) }, 1500)
}).catch(err => { }).catch(err => {
that.$showWarning("网络异常"); that.$showWarning("网络异常");
......
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