Browse Source

[Fix 0000] 瓦斯地质图CAD文件树无法切换的问题修复

houzekong 3 tháng trước cách đây
mục cha
commit
432709231d
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      src/views/vent/cad/GasGeoViewer.vue

+ 4 - 3
src/views/vent/cad/GasGeoViewer.vue

@@ -33,9 +33,10 @@
     selected.value = treeData.value[0];
   }
 
-  function openFile({ id }: Record<string, string> = {}) {
-    if (!id) return;
-    processFile(id).then((path) => {
+  function openFile(data: Record<string, string> = {}) {
+    selected.value = data;
+    if (!data.id) return;
+    processFile(data.id).then((path) => {
       postMessage('MKY_Open_Mxweb', path);
     });
   }