wangfei 6 years ago
parent
commit
68e426b8df
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/pages/system/newOrder/newOrderList/index.vue

+ 2
- 1
src/pages/system/newOrder/newOrderList/index.vue View File

@@ -127,10 +127,11 @@ export default {
127 127
       autoConnect: true,
128 128
     })
129 129
   },
130
-  beforeDestroyed () {
130
+  beforeRouteLeave (to, from, next) {
131 131
     console.log("离开案场")
132 132
     this.ws.close()
133 133
     this.updateList([])
134
+    next()
134 135
   },
135 136
   methods: {
136 137
     init () {