wangfei 6 vuotta sitten
vanhempi
commit
68e426b8df
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      src/pages/system/newOrder/newOrderList/index.vue

+ 2
- 1
src/pages/system/newOrder/newOrderList/index.vue Näytä tiedosto

@@ -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 () {