mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
fix: 修复已经在消息中打开项目对话时无法在其他地方打开项目沟通
This commit is contained in:
parent
405e09fdf4
commit
09f5cca948
@ -93,6 +93,7 @@ export default {
|
||||
},
|
||||
|
||||
show(v) {
|
||||
this.$store.state.dialogModalShow = v;
|
||||
$A.eeuiAppSetScrollDisabled(v && this.windowPortrait)
|
||||
}
|
||||
},
|
||||
|
||||
8
resources/assets/js/store/actions.js
vendored
8
resources/assets/js/store/actions.js
vendored
@ -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(_ => {
|
||||
|
||||
1
resources/assets/js/store/state.js
vendored
1
resources/assets/js/store/state.js
vendored
@ -143,6 +143,7 @@ export default {
|
||||
dialogSseList: [],
|
||||
dialogDroupWordChain: {},
|
||||
dialogGroupVote: {},
|
||||
dialogModalShow: false,
|
||||
|
||||
// 搜索关键词(主要用于移动端判断滑动返回)
|
||||
messengerSearchKey: {dialog: '', contacts: ''},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user