From 00ebacac23d71c662362257085143ed9c3a15ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Fri, 27 Dec 2024 13:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E4=BF=AE=E5=A4=8D=E5=B1=85?= =?UTF-8?q?=E4=B8=AD=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/viewPost/tp-texts.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/viewPost/tp-texts.vue b/src/components/viewPost/tp-texts.vue index 537131ea..d88ddf2d 100644 --- a/src/components/viewPost/tp-texts.vue +++ b/src/components/viewPost/tp-texts.vue @@ -48,8 +48,8 @@ function getTitle(): string { function getLineStyle(): StyleValue { const ruleInline: StyleValue = "display: inline"; if (props.data.attributes === undefined) return ruleInline; - if (!props.data.attributes.align) return ruleInline; - return `textAlign: ${props.data.attributes.align}`; + if (props.data.attributes.align === undefined) return ruleInline; + return `text-align: ${props.data.attributes.align};`; }