Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d0c59d98
authored
Jan 04, 2022
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' into pre
parents
7530689c
d162e063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
components/message.vue
components/message.vue
View file @
d0c59d98
...
...
@@ -346,8 +346,8 @@
return
true
;
}
// 系统推送的消息,默认为客服发送
if
(
this
.
messageBody
&&
+
this
.
messageBody
.
eid
==
=
0
)
{
// 系统推送的消息
或老用户(一般是客服,eid为负数)
,默认为客服发送
if
(
this
.
messageBody
&&
+
this
.
messageBody
.
eid
<
=
0
)
{
return
true
;
}
...
...
@@ -377,15 +377,19 @@
}
private
get
userName
()
{
if
(
this
.
refetchUsername
)
{
return
this
.
refetchUsername
;
}
if
(
this
.
chatMembers
)
{
const
t
=
this
.
chatMembers
.
find
((
i
)
=>
i
.
eid
===
this
.
data
.
eid
);
if
(
t
)
{
return
this
.
getFilterUsername
(
t
.
alias_name
||
t
.
name
);
const
name
=
this
.
getFilterUsername
(
t
.
alias_name
||
t
.
name
);
if
(
name
)
{
return
name
;
}
}
}
if
(
!
this
.
refetchUsername
)
{
this
.
refetchUsername4Message
();
}
this
.
refetchUsername4Message
();
return
this
.
refetchUsername
;
}
...
...
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