mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 13:22:49 +00:00
fix: 直接拖文件会发送两次的bug修复
This commit is contained in:
parent
e9e1cd9028
commit
a9033c610b
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user