panhui преди 4 години
родител
ревизия
556914f0f4
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/views/asset/Detail.vue

+ 3 - 1
src/views/asset/Detail.vue

@@ -731,7 +731,9 @@ export default {
         }
     },
     beforeRouteLeave(from, to, next) {
-        this.emitter.emit('updateList', this.info);
+        if (this && this.emitter) {
+            this.emitter.emit('updateList', this.info);
+        }
         next();
     }
 };