mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-12 16:11:27 +08:00
🐛 Fix(custom): fix file selection bug in upload page
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import crypto from 'node:crypto'
|
||||
import path from 'node:path'
|
||||
|
||||
import { clipboard, contextBridge, ipcRenderer, webFrame } from 'electron'
|
||||
import { clipboard, contextBridge, ipcRenderer, webFrame, webUtils } from 'electron'
|
||||
import fs from 'fs-extra'
|
||||
import yaml from 'js-yaml'
|
||||
import mime from 'mime-types'
|
||||
@@ -59,6 +59,9 @@ try {
|
||||
},
|
||||
ipcRendererRemoveListener: (channel: string, listener: IpcRendererListener) => {
|
||||
ipcRenderer.removeListener(channel, listener)
|
||||
},
|
||||
showFilePath (file: File) {
|
||||
return webUtils.getPathForFile(file)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user