Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7895d184
authored
Nov 21, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能完善】商城: 客服动态计算消息最后发送时间距离现在过去了多久
parent
fc5df39b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/views/mall/promotion/kefu/components/KeFuConversationList.vue
+2
-1
No files found.
src/views/mall/promotion/kefu/components/KeFuConversationList.vue
View file @
7895d184
...
...
@@ -89,14 +89,15 @@ const { replaceEmoji } = useEmoji()
const
activeConversationId
=
ref
(
-
1
)
// 选中的会话
const
collapse
=
computed
(()
=>
appStore
.
getCollapse
)
// 折叠菜单
const
lastMessageTimeMap
=
ref
<
Map
<
number
,
string
>>
(
new
Map
<
number
,
string
>
())
/** 计算消息最后发送时间距离现在过去了多久 */
const
lastMessageTimeMap
=
ref
<
Map
<
number
,
string
>>
(
new
Map
<
number
,
string
>
())
const
calculationLastMessageTime
=
()
=>
{
kefuStore
.
getConversationList
?.
forEach
((
item
)
=>
{
lastMessageTimeMap
.
value
.
set
(
item
.
id
,
formatPast
(
item
.
lastMessageTime
,
'YYYY-MM-DD'
))
})
}
defineExpose
({
calculationLastMessageTime
})
/** 打开右侧的消息列表 */
const
emits
=
defineEmits
<
{
(
e
:
'change'
,
v
:
KeFuConversationRespVO
):
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment