mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
fix: 直接拖文件会发送两次的bug修复
This commit is contained in:
parent
e9e1cd9028
commit
a9033c610b
@ -1681,6 +1681,13 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
pasteSend() {
|
pasteSend() {
|
||||||
|
if (this.__paste_send_index) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.__paste_send_index = 1;
|
||||||
|
setTimeout(() => {
|
||||||
|
this.__paste_send_index = 0;
|
||||||
|
}, 300)
|
||||||
this.pasteFile.some(file => {
|
this.pasteFile.some(file => {
|
||||||
this.$refs.chatUpload.upload(file)
|
this.$refs.chatUpload.upload(file)
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1718,6 +1718,13 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
pasteSend() {
|
pasteSend() {
|
||||||
|
if (this.__paste_send_index) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.__paste_send_index = 1;
|
||||||
|
setTimeout(() => {
|
||||||
|
this.__paste_send_index = 0;
|
||||||
|
}, 300)
|
||||||
const names = []
|
const names = []
|
||||||
this.pasteFile.some(file => {
|
this.pasteFile.some(file => {
|
||||||
if (!names.find(name => name === file.name)) {
|
if (!names.find(name => name === file.name)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user