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