Skip to content

Commit 41b7f79

Browse files
committed
fix: restore v-model binding for file list in upload component
1 parent 6c0d094 commit 41b7f79

File tree

1 file changed

+1
-3
lines changed
  • ui/src/components/ai-chat/component/chat-input-operate

1 file changed

+1
-3
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@
278278
:show-file-list="false"
279279
:accept="getAcceptList()"
280280
:on-change="(file: any, fileList: any) => uploadFile(file, fileList)"
281-
v-model:file-list="fileAllList"
282281
ref="upload"
283282
>
284283
<el-tooltip
@@ -393,7 +392,6 @@
393392
:show-file-list="false"
394393
:accept="getAcceptList()"
395394
:on-change="(file: any, fileList: any) => uploadFile(file, fileList)"
396-
v-model:file-list="fileAllList"
397395
ref="upload"
398396
class="import-button"
399397
>
@@ -568,7 +566,7 @@ const uploadFile = async (file: any, fileList: any) => {
568566
}
569567
filePromisionDict.value[file.uid] = false
570568
const inner = reactive(file)
571-
// fileAllList.value.push(inner)
569+
fileAllList.value.push(inner)
572570
if (!chatId_context.value) {
573571
chatId_context.value = await props.openChatId()
574572
}

0 commit comments

Comments
 (0)