Browse Source

修改设备台账分屏报错

haojianlong 5 years ago
parent
commit
4c37190e55
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/screen/splitscreen/equipledger/index.vue

+ 1 - 1
src/views/screen/splitscreen/equipledger/index.vue

@@ -39,7 +39,7 @@ export default {
   mounted() {
     this.cadWidth = document.getElementById('page-content').offsetWidth;
     this.cadHeight = document.getElementById('page-content').offsetHeight;
-    this.equip = this.$route.query.equip;
+    this.equip = this.$route.query.equip || {};
     this.init();
   },
   methods: {