Explorar el Código

修改设备台账分屏报错

haojianlong hace 5 años
padre
commit
4c37190e55
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: {