Commit fc85da38 authored by wxk's avatar wxk

bugfix

parent 1ae73bbc
File deleted
...@@ -38,8 +38,9 @@ ...@@ -38,8 +38,9 @@
}, },
methods: { methods: {
navClick(index) { navClick(index) {
if(index != 'account'){
Bus.$emit('refresh'); Bus.$emit('refresh');
if(this.active != 'account'){ console.log('111')
this.$router.push(`/monitor/${index}`); this.$router.push(`/monitor/${index}`);
}else{ }else{
this.$router.push('/monitor/account'); this.$router.push('/monitor/account');
......
...@@ -200,6 +200,9 @@ ...@@ -200,6 +200,9 @@
this.getRobotList(Params); this.getRobotList(Params);
})*/ })*/
}, },
beforeDestroy() {
Bus.$off('refresh');
},
methods: { methods: {
init() { init() {
this.robotStatus = '', //机器人状态 this.robotStatus = '', //机器人状态
......
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