no message

cyl/master-0804
jscyl13849007907 3 months ago
parent d314daeaf8
commit 95d36ff9e5

@ -117,7 +117,7 @@
@longpress="handleLongPress(item)" style="min-height: 25px;" @longpress="handleLongPress(item)" style="min-height: 25px;"
v-if="!item.isHidden" v-if="!item.isHidden"
> >
<g-chat-message :cusMessage="item.msg" style="max-width: 80%" v-if="item.msg" /> <g-chat-message :cusMessage="item.msg" style="max-width: 80%" v-if="item.msg" :data-msg='item.msg' />
<view v-if="index == (list.length - 1) && isShowRightLoading && !item.msg" class="right_animate g_flex_row_end g_mr_10 obj_4"> <view v-if="index == (list.length - 1) && isShowRightLoading && !item.msg" class="right_animate g_flex_row_end g_mr_10 obj_4">
<view class="g_flex_row_end" style="border-radius: 12px;"> <view class="g_flex_row_end" style="border-radius: 12px;">

@ -28,8 +28,9 @@
} }
}, },
watch: { watch: {
cusMessage: { cusMessage: {
handler(newVal) { handler(newVal) {
console.log('newVal',newVal)
const hasDot = newVal.endsWith('。'); const hasDot = newVal.endsWith('。');
const messageWithoutDot = hasDot ? newVal.slice(0, -1) : newVal; const messageWithoutDot = hasDot ? newVal.slice(0, -1) : newVal;
this.displayedMessage = messageWithoutDot; this.displayedMessage = messageWithoutDot;

Loading…
Cancel
Save