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
b163c6ab
authored
Nov 05, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
style
parent
d07cf879
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
components/controller/index.ts
components/message-item/audio-message.vue
components/controller/index.ts
View file @
b163c6ab
...
@@ -10,6 +10,12 @@ export function parserMessage(type: string, rawMsg: string) {
...
@@ -10,6 +10,12 @@ export function parserMessage(type: string, rawMsg: string) {
if
(
type
===
MessageType
.
Image
)
{
if
(
type
===
MessageType
.
Image
)
{
return
`[图片]`
;
return
`[图片]`
;
}
}
if
(
type
===
MessageType
.
Video
)
{
return
`[视频]`
;
}
if
(
type
===
MessageType
.
Voice
)
{
return
`[语音]`
;
}
if
(
type
===
MessageType
.
File
)
{
if
(
type
===
MessageType
.
File
)
{
return
`[文件]`
;
return
`[文件]`
;
}
}
...
...
components/message-item/audio-message.vue
View file @
b163c6ab
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<div
<div
class=
"msg-detail voice-message d-flex align-items-center"
class=
"msg-detail voice-message d-flex align-items-center"
:class=
"
{ playing: playing, 'can-play': messageRealUrl }"
:class=
"
{ playing: playing, 'can-play': messageRealUrl }"
v-if="messageType === 'voice'"
@click.stop="play"
@click.stop="play"
:style="{ width: getVoiceMessageWidth + 'px' }"
:style="{ width: getVoiceMessageWidth + 'px' }"
>
>
...
...
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