🐛 Fix(custom): fix file selection bug in upload page

This commit is contained in:
Kuingsmile
2025-08-05 15:41:43 +08:00
parent b1f514e80c
commit fe945a0136
6 changed files with 9 additions and 10 deletions

View File

@@ -42,7 +42,7 @@
@click="setAlwaysOnTop"
>
<PinIcon
:color="isAlwaysOnTop ? '#CE6769' : '#000'"
:color="isAlwaysOnTop ? '#CE6769' : '#6B7280'"
:size="14"
/>
</button>

View File

@@ -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)
})

View File

@@ -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)
})