Sfoglia il codice sorgente

fix(useImport): 修正imgExporting赋值错误

将win.imgExporting错误赋值为imgExporting改为赋值为() => imgExporting.value
lsc 5 giorni fa
parent
commit
d46efc5c39
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/hooks/useImport.ts

+ 1 - 1
src/hooks/useImport.ts

@@ -227,7 +227,7 @@ export default () => {
     const win = window as any
     const win = window as any
     if (!win.exportJSON) win.exportJSON = exportJSON2
     if (!win.exportJSON) win.exportJSON = exportJSON2
     if (!win.readJSON) win.readJSON = readJSON
     if (!win.readJSON) win.readJSON = readJSON
-    if (!win.importJSON) win.imgExporting = imgExporting
+    if (!win.importJSON) win.imgExporting = () => imgExporting.value
   }
   }
 
 
   // 导入pptist文件
   // 导入pptist文件