guarantee-lsq 2 年之前
父節點
當前提交
69afd60baf
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/opc/Opc.vue

+ 3 - 1
src/views/opc/Opc.vue

@@ -131,7 +131,9 @@ export default {
   created () {
     this.positionId = this.$route.query.line
     this.setTree()
-    this.getOpcInfo()
+    if (this.positionId || this.positionId !== '') {
+      this.getOpcInfo()
+    }
   },
   methods: {
     resize (newRect) {