fix: 修复已经在消息中打开项目对话时无法在其他地方打开项目沟通

This commit is contained in:
kuaifan 2025-06-03 15:17:43 +08:00
parent 405e09fdf4
commit 09f5cca948
3 changed files with 8 additions and 2 deletions

View File

@ -93,6 +93,7 @@ export default {
},
show(v) {
this.$store.state.dialogModalShow = v;
$A.eeuiAppSetScrollDisabled(v && this.windowPortrait)
}
},

View File

@ -3156,8 +3156,12 @@ export default {
return
}
//
if (state.dialogId) {
emitter.emit('handleMoveTop', 'dialogModal'); // 已打开对话时将对话窗口置顶
if (state.dialogModalShow) {
// 已打开对话时将对话窗口置顶
emitter.emit('handleMoveTop', 'dialogModal');
} else if (state.dialogId === dialogId) {
// 如果对话窗口未打开则清除当前对话ID避免类此已经在消息中打开项目对话时无法在其他地方打开项目对话
state.dialogId = 0;
}
//
requestAnimationFrame(_ => {

View File

@ -143,6 +143,7 @@ export default {
dialogSseList: [],
dialogDroupWordChain: {},
dialogGroupVote: {},
dialogModalShow: false,
// 搜索关键词(主要用于移动端判断滑动返回)
messengerSearchKey: {dialog: '', contacts: ''},