mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
no message
This commit is contained in:
parent
35b7e3a289
commit
508cc2bd91
@ -1305,7 +1305,7 @@ export default {
|
||||
onClickEditor() {
|
||||
this.clearSearchKey()
|
||||
this.updateEmojiQuick(this.value)
|
||||
this.focus()
|
||||
!this.isFocus && this.focus()
|
||||
inputLoadAdd(this._uid)
|
||||
},
|
||||
|
||||
|
||||
@ -262,13 +262,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="activeNum > 0 && routeName === 'manage-messenger'" class="messenger-msg">
|
||||
<div class="msg-dialog-bg">
|
||||
<div class="msg-dialog-bg-icon"><Icon type="ios-chatbubbles" /></div>
|
||||
<div class="msg-dialog-bg-text">{{$L('选择一个会话开始聊天')}}</div>
|
||||
<template v-if="activeNum > 0 && routeName === 'manage-messenger'">
|
||||
<div class="messenger-line"></div>
|
||||
<div class="messenger-msg">
|
||||
<div class="msg-dialog-bg">
|
||||
<div class="msg-dialog-bg-icon"><Icon type="ios-chatbubbles" /></div>
|
||||
<div class="msg-dialog-bg-text">{{$L('选择一个会话开始聊天')}}</div>
|
||||
</div>
|
||||
<DialogWrapper v-if="windowLandscape && dialogId > 0" :dialogId="dialogId" @on-active="scrollIntoActive" :auto-focus="$A.isDesktop()" location="messenger"/>
|
||||
</div>
|
||||
<DialogWrapper v-if="windowLandscape && dialogId > 0" :dialogId="dialogId" @on-active="scrollIntoActive" :auto-focus="$A.isDesktop()" location="messenger"/>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
6
resources/assets/js/store/actions.js
vendored
6
resources/assets/js/store/actions.js
vendored
@ -4214,14 +4214,14 @@ export default {
|
||||
break;
|
||||
case 'add':
|
||||
case 'chat':
|
||||
const isChat = mode === "chat" || $A.isSubElectron;
|
||||
const isAdd = mode === "add";
|
||||
if (!state.dialogMsgs.find(({id}) => id == data.id)) {
|
||||
// 新增任务消息数量
|
||||
dispatch("increaseTaskMsgNum", {id: data.dialog_id});
|
||||
// 新增回复数量
|
||||
dispatch("increaseMsgReplyNum", {id: data.reply_id});
|
||||
//
|
||||
if (!isChat) {
|
||||
if (isAdd) {
|
||||
if (data.userid !== state.userId) {
|
||||
// 更新对话新增未读数
|
||||
const dialog = state.cacheDialogs.find(({id}) => id == dialog_id);
|
||||
@ -4249,7 +4249,7 @@ export default {
|
||||
// 更新消息列表
|
||||
dispatch("saveDialogMsg", data)
|
||||
// 更新最后消息
|
||||
!isChat && dispatch("updateDialogLastMsg", data);
|
||||
isAdd && dispatch("updateDialogLastMsg", data);
|
||||
return;
|
||||
}
|
||||
setTimeout(() => saveMsg(data, count + 1), 50);
|
||||
|
||||
17
resources/assets/sass/pages/page-messenger.scss
vendored
17
resources/assets/sass/pages/page-messenger.scss
vendored
@ -547,22 +547,18 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.messenger-line {
|
||||
flex-shrink: 0;
|
||||
width: 1px;
|
||||
height: 100%;
|
||||
background-color: #f4f5f5;
|
||||
}
|
||||
.messenger-msg {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
position: relative;
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 1px;
|
||||
background-color: #f4f5f5;
|
||||
z-index: 2;
|
||||
}
|
||||
.msg-dialog-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@ -727,6 +723,7 @@ body.window-portrait {
|
||||
}
|
||||
}
|
||||
}
|
||||
.messenger-line,
|
||||
.messenger-msg {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user