code review 微信的实现

(cherry picked from commit 1c77ba8e04)
This commit is contained in:
YunaiV 2023-05-04 21:00:49 +08:00 committed by shizhong
parent b9fd7b7753
commit cc62e8ec79
2 changed files with 1 additions and 4 deletions

View File

@ -47,5 +47,3 @@ const props = defineProps<{
const item = ref(props.item)
</script>
<style scoped></style>

View File

@ -18,7 +18,7 @@
class="avue-comment__body"
:style="item.sendFrom === SendFrom.MpBot ? 'background: #6BED72;' : ''"
>
<!-- 事件区域 -->
<!-- 事件区域 TODO 芋艿是不是把拆个 Message 出来里面包括 MsgEvent + 各种其它消息分开有点不够整体 -->
<MsgEvent v-if="item.type === MsgType.Event" :item="item" />
<!-- 消息区域 -->
<div v-else-if="item.type === MsgType.Text">{{ item.content }}</div>
@ -68,7 +68,6 @@
</div>
</div>
</template>
<script setup lang="ts" name="MsgList">
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'