mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-08 19:12:17 +08:00
🐛 Fix(custom): fix file selection bug in upload page
This commit is contained in:
@@ -153,7 +153,7 @@ function ipcSendFiles (files: FileList) {
|
||||
Array.from(files).forEach(item => {
|
||||
const obj = {
|
||||
name: item.name,
|
||||
path: item.webkitRelativePath
|
||||
path: window.electron.showFilePath(item)
|
||||
}
|
||||
sendFiles.push(obj)
|
||||
})
|
||||
|
||||
@@ -69,7 +69,6 @@
|
||||
ref="fileInput"
|
||||
type="file"
|
||||
multiple
|
||||
accept="image/*"
|
||||
style="display: none"
|
||||
@change="onChange"
|
||||
>
|
||||
@@ -364,7 +363,7 @@ function ipcSendFiles (files: FileList) {
|
||||
Array.from(files).forEach(item => {
|
||||
const obj = {
|
||||
name: item.name,
|
||||
path: item.webkitRelativePath
|
||||
path: window.electron.showFilePath(item)
|
||||
}
|
||||
sendFiles.push(obj)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user