mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-09 01:31:14 +08:00
更新 MessageCard 组件,添加对 props.message.action 的检查以优化条件渲染逻辑
This commit is contained in:
@@ -63,7 +63,8 @@ function replaceNewLine(value: string) {
|
|||||||
props.message?.title &&
|
props.message?.title &&
|
||||||
!props.message?.text &&
|
!props.message?.text &&
|
||||||
!props.message?.image &&
|
!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"
|
class="rounded-md text-body-1 py-2 px-4 elevation-2 bg-primary text-white chat-right mb-1"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user