Commit b163c6ab by Sixong.Zhu

style

parent d07cf879
...@@ -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 `[文件]`;
} }
......
...@@ -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' }"
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment