Explorar el Código

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

lsc hace 6 días
padre
commit
f0f795f173
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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.value
+    if (!win.importJSON) win.imgExporting = imgExporting.value
   }
   }
 
 
   // 导入pptist文件
   // 导入pptist文件