🐛 Fix(custom): fix drag upload issue and mime error

ISSUES CLOSED: #373
This commit is contained in:
Kuingsmile
2025-08-20 10:28:57 +08:00
parent b1fb31d655
commit 023250f39b
9 changed files with 134 additions and 126 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import path from 'node:path'
import { clipboard, contextBridge, ipcRenderer, IpcRendererEvent, webFrame, webUtils } from 'electron'
import fs from 'fs-extra'
import yaml from 'js-yaml'
import mime from 'mime-types'
import mime from 'mime'
import { isReactive, isRef, toRaw, unref } from 'vue'
export const getRawData = (args: any): any => {
@@ -93,7 +93,7 @@ try {
load: yaml.load
},
mime: {
lookup: mime.lookup
lookup: mime.getType
}
})
} catch (error) {