Fix upload image issue (#42)

This commit is contained in:
AceDataCloud committed 2024-01-08 14:08:39 +00:00
1 parent dc1e68cb03
commit 4e8d1dad07
5 files changed
+20 -8

No files matched your search

+4 -2
View File
@@ -11,7 +11,7 @@
:show-file-list="true"
:limit="1"
:multiple="false"
action="/api/v1/files/"
:action="uploadUrl"
:on-exceed="onExceed"
:on-error="onError"
:headers="headers"
@@ -51,6 +51,7 @@ import { defineComponent } from 'vue';
import { ElInput, ElMessage, ElTooltip, ElUpload } from 'element-plus';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { CHAT_MODEL_CHATGPT4_VISION, IChatModel } from '@/operators';
import { getBaseUrlData } from '@/utils';
export default defineComponent({
name: 'InputBox',
@@ -80,7 +81,8 @@ export default defineComponent({
data() {
return {
questionValue: this.question,
fileList: []
fileList: [],
uploadUrl: getBaseUrlData() + '/api/v1/files/'
};
},
computed: {