mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: restore v-model binding for file list in upload component
This commit is contained in:
parent
6c0d094aa6
commit
41b7f79202
|
|
@ -278,7 +278,6 @@
|
|||
:show-file-list="false"
|
||||
:accept="getAcceptList()"
|
||||
:on-change="(file: any, fileList: any) => uploadFile(file, fileList)"
|
||||
v-model:file-list="fileAllList"
|
||||
ref="upload"
|
||||
>
|
||||
<el-tooltip
|
||||
|
|
@ -393,7 +392,6 @@
|
|||
:show-file-list="false"
|
||||
:accept="getAcceptList()"
|
||||
:on-change="(file: any, fileList: any) => uploadFile(file, fileList)"
|
||||
v-model:file-list="fileAllList"
|
||||
ref="upload"
|
||||
class="import-button"
|
||||
>
|
||||
|
|
@ -568,7 +566,7 @@ const uploadFile = async (file: any, fileList: any) => {
|
|||
}
|
||||
filePromisionDict.value[file.uid] = false
|
||||
const inner = reactive(file)
|
||||
// fileAllList.value.push(inner)
|
||||
fileAllList.value.push(inner)
|
||||
if (!chatId_context.value) {
|
||||
chatId_context.value = await props.openChatId()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue