瀏覽代碼

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

houzekong 3 月之前
父節點
當前提交
432709231d
共有 1 個文件被更改,包括 4 次插入3 次删除
  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);
     });
   }