更新 MessageCard 组件,添加对 props.message.action 的检查以优化条件渲染逻辑

This commit is contained in:
jxxghp
2025-01-12 17:02:29 +08:00
parent 235e014542
commit f53192cfa2

View File

@@ -63,7 +63,8 @@ function replaceNewLine(value: string) {
props.message?.title &&
!props.message?.text &&
!props.message?.image &&
isNullOrEmptyObject(props.message?.note)
isNullOrEmptyObject(props.message?.note) &&
props.message?.action === 0
"
class="rounded-md text-body-1 py-2 px-4 elevation-2 bg-primary text-white chat-right mb-1"
>