Explorar o código

新增激光接口

liujiejie hai 3 días
pai
achega
cd97c0eb80
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      jg/src/views/laserRangeFinder/index.vue

+ 4 - 4
jg/src/views/laserRangeFinder/index.vue

@@ -526,9 +526,7 @@ export default {
       try {
         const result = await window.electronAPI.callPythonAPI("loaddata", path);
         console.log("A1 API 响应: result结果", result);
-        //first_blade
-        //second_blade
-        //third_blade
+
         if (result) {
           this.LeafRootOutlineData = JSON.parse(JSON.stringify(result));
           this.$nextTick(() => {
@@ -556,7 +554,9 @@ export default {
     handleTabActive(type, data) {
       this.tabActiveName = type; // 切换 tab
       if (data) {
-        this.LeafRootOutlineData = JSON.parse(JSON.stringify(data));
+        this.$nextTick(() => {
+          this.LeafRootOutlineData = JSON.parse(JSON.stringify(data));
+        });
       }
     },
     handleLoad(status) {