Przeglądaj źródła

[Fix 0000] 修复瓦斯地质页面无法点击文件列表的问题

houzekong 3 miesięcy temu
rodzic
commit
0d1cb57c64
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/views/vent/cad/GasGeoViewer.vue

+ 2 - 2
src/views/vent/cad/GasGeoViewer.vue

@@ -33,7 +33,7 @@
     selected.value = treeData.value[0];
   }
 
-  function openFile(id?: string) {
+  function openFile({ id }: Record<string, string> = {}) {
     if (!id) return;
     processFile(id).then((path) => {
       postMessage('MKY_Open_Mxweb', path);
@@ -55,7 +55,7 @@
     registHook('MKY_Open_File_Complete', () => {
       unregistHook('MKY_Open_File_Complete');
       getTreeList().then(() => {
-        openFile(selected.value.id);
+        openFile(selected.value);
       });
     });
   });