We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d86265 commit 12a263cCopy full SHA for 12a263c
ui/src/components/ai-chat/component/chat-input-operate/index.vue
@@ -93,7 +93,7 @@
93
}}
94
</div>
95
</template>
96
- <el-button text>
+ <el-button text :disabled="checkMaxFilesLimit()">
97
<el-icon><Paperclip /></el-icon>
98
</el-button>
99
</el-tooltip>
@@ -223,6 +223,10 @@ const getAcceptList = () => {
223
return accepts.map((ext: any) => '.' + ext).join(',')
224
}
225
226
+const checkMaxFilesLimit = () => {
227
+ return props.applicationDetails.file_upload_setting.maxFiles <= (uploadImageList.value.length + uploadDocumentList.value.length)
228
+}
229
+
230
const uploadFile = async (file: any, fileList: any) => {
231
const { maxFiles, fileLimit } = props.applicationDetails.file_upload_setting
232
// 单次上传文件数量限制
0 commit comments