fix: 直接拖文件会发送两次的bug修复
This commit is contained in:
@@ -1681,6 +1681,13 @@ export default {
|
||||
},
|
||||
|
||||
pasteSend() {
|
||||
if (this.__paste_send_index) {
|
||||
return;
|
||||
}
|
||||
this.__paste_send_index = 1;
|
||||
setTimeout(() => {
|
||||
this.__paste_send_index = 0;
|
||||
}, 300)
|
||||
this.pasteFile.some(file => {
|
||||
this.$refs.chatUpload.upload(file)
|
||||
});
|
||||
|
||||
@@ -1718,6 +1718,13 @@ export default {
|
||||
},
|
||||
|
||||
pasteSend() {
|
||||
if (this.__paste_send_index) {
|
||||
return;
|
||||
}
|
||||
this.__paste_send_index = 1;
|
||||
setTimeout(() => {
|
||||
this.__paste_send_index = 0;
|
||||
}, 300)
|
||||
const names = []
|
||||
this.pasteFile.some(file => {
|
||||
if (!names.find(name => name === file.name)) {
|
||||
|
||||
Reference in New Issue
Block a user