mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
perf: 优化打开会话逻辑
This commit is contained in:
parent
74405f1a2a
commit
d5bc7d4051
@ -218,14 +218,13 @@ export default {
|
||||
},
|
||||
|
||||
onOpenDialog(userid) {
|
||||
if (this.dialogData.type != 'group') {
|
||||
return
|
||||
if (this.dialogData.type == 'group' || ![this.dialogData.dialog_user?.userid, this.userId].includes(userid)) {
|
||||
this.$store.dispatch("openDialogUserid", userid).then(_ => {
|
||||
this.goForward({name: 'manage-messenger'})
|
||||
}).catch(({msg}) => {
|
||||
$A.modalError(msg)
|
||||
});
|
||||
}
|
||||
this.$store.dispatch("openDialogUserid", userid).then(_ => {
|
||||
this.goForward({name: 'manage-messenger'})
|
||||
}).catch(({msg}) => {
|
||||
$A.modalError(msg)
|
||||
});
|
||||
},
|
||||
|
||||
onMention() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user