Commit cb1d43e3 by Sixong.Zhu

Merge branch 'master' into pre

parents 1f3e0a2d b96b4270
Showing with 12 additions and 7 deletions
...@@ -339,16 +339,20 @@ ...@@ -339,16 +339,20 @@
if (e.shiftKey || e.ctrlKey || e.altKey) { if (e.shiftKey || e.ctrlKey || e.altKey) {
return; return;
} }
const data = this.getNodeListFromInputBox(); // 避免按一下enter键多次触发发送
this.$emit("send", data);
this.clearInput();
if (this.chatId) {
chatCache[this.chatId] = [];
}
if (this.reloadTimer) { if (this.reloadTimer) {
clearTimeout(this.reloadTimer); clearTimeout(this.reloadTimer);
} }
this.reloadTimer = setTimeout(() => this.getMyChatList(), 120); this.reloadTimer = setTimeout(() => {
const data = this.getNodeListFromInputBox();
this.$emit("send", data);
this.clearInput();
if (this.chatId) {
chatCache[this.chatId] = [];
}
this.getMyChatList();
}, 120);
} }
/** /**
......
...@@ -13,6 +13,7 @@ export const enum Product { ...@@ -13,6 +13,7 @@ export const enum Product {
BiJie = 'bi-jie', BiJie = 'bi-jie',
Cashier = 'cashier', Cashier = 'cashier',
Uniplat = "uniplat", Uniplat = "uniplat",
DeShengJiuYeBao = 'de-sheng-jiu-ye-bao'
} }
const enum ProductTable { const enum ProductTable {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment