ZaiZai hai 1 ano
pai
achega
0c6512dd73
Modificáronse 2 ficheiros con 3 adicións e 4 borrados
  1. 1 1
      public/version.json
  2. 2 3
      src/views/project/admin/list.vue

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240923175228"
+  "value": "20240924143831"
 }

+ 2 - 3
src/views/project/admin/list.vue

@@ -273,10 +273,9 @@ const downloadTemplate = async () => {
         window.$message?.error(msg ?? '数据异常')
         return
     }
-    console.log(window.electron)
-    console.log(window.electron.ipcRenderer)
     if (config.localModel) {
-        window.electron.ipcRenderer.invoke('download-file', { url: data })
+        const electronAPI = window.electronAPI
+        electronAPI?.sendFownloadFile(data)
     } else {
         newWindow(data)
     }