mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-01 07:19:41 +08:00
🐛 Fix(custom): fix file selection bug in upload page
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
@click="setAlwaysOnTop"
|
||||
>
|
||||
<PinIcon
|
||||
:color="isAlwaysOnTop ? '#CE6769' : '#000'"
|
||||
:color="isAlwaysOnTop ? '#CE6769' : '#6B7280'"
|
||||
:size="14"
|
||||
/>
|
||||
</button>
|
||||
|
||||
@@ -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