ai-chat-bot-interface 1.1.8 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/OperateModule.vue +4 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -181,7 +181,6 @@ const handleTag = (info) => {
|
|
|
181
181
|
const sendMsg = (e) => {
|
|
182
182
|
const list = [{ content: textValue.value, text: textValue.value }];
|
|
183
183
|
if (uFileList.value.length) {
|
|
184
|
-
console.log(uFileList.value);
|
|
185
184
|
list.push({
|
|
186
185
|
type: 'object_string',
|
|
187
186
|
content: uFileList.value.map((file) => ({
|
|
@@ -190,6 +189,7 @@ const sendMsg = (e) => {
|
|
|
190
189
|
file_url: file.file_url,
|
|
191
190
|
})),
|
|
192
191
|
});
|
|
192
|
+
uploadPlane.value = false;
|
|
193
193
|
}
|
|
194
194
|
Emits('send', [...list]);
|
|
195
195
|
clearAllFile();
|
|
@@ -268,12 +268,15 @@ const clearAllFile = (deep = false) => {
|
|
|
268
268
|
clearFile(i);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
+
uploadInput.value ? (uploadInput.value.value = '') : '';
|
|
272
|
+
|
|
271
273
|
uFileList.value = [];
|
|
272
274
|
};
|
|
273
275
|
|
|
274
276
|
const clearFile = (idx) => {
|
|
275
277
|
URL.revokeObjectURL(uFileList.value[idx].file_url);
|
|
276
278
|
uFileList.value.splice(idx, 1);
|
|
279
|
+
uploadInput.value ? (uploadInput.value.value = '') : '';
|
|
277
280
|
};
|
|
278
281
|
|
|
279
282
|
const resizeTextarea = () => {
|