Jelajahi Sumber

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

houzekong 3 bulan lalu
induk
melakukan
432709231d
1 mengubah file dengan 4 tambahan dan 3 penghapusan
  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);
     });
   }