fix: 修复个人对话为空时无法重复打开该对话的问题

This commit is contained in:
Mr.Huan 2022-01-26 17:13:20 +08:00
parent 4853fbcec3
commit 4516bce0ee
2 changed files with 4 additions and 1 deletions

View File

@ -200,6 +200,7 @@ export default {
} }
}, },
dialogOpenId(id) { dialogOpenId(id) {
if ( id > 0 )
this.dialogId = id; this.dialogId = id;
}, },
contactsKey(val) { contactsKey(val) {

View File

@ -1765,6 +1765,8 @@ export default {
reject({msg: 'Parameter error'}); reject({msg: 'Parameter error'});
return; return;
} }
// 先重置dialogOpenId否者无法重复打开相同对话
state.dialogOpenId = 0;
dispatch("call", { dispatch("call", {
url: 'dialog/open/user', url: 'dialog/open/user',
data: { data: {