diff --git a/src/components/post/tp-parser.vue b/src/components/post/tp-parser.vue
index daf2ccbc..ce15dd9f 100644
--- a/src/components/post/tp-parser.vue
+++ b/src/components/post/tp-parser.vue
@@ -2,7 +2,7 @@
@@ -25,7 +25,7 @@ interface TpParserProps {
const props = defineProps();
-function getTpName(tp: TGApp.Plugins.Mys.SctPost.Base, index: number) {
+function getTpName(tp: TGApp.Plugins.Mys.SctPost.Base) {
if (typeof tp.insert === "string") {
return TpText;
} else if ("image" in tp.insert) {
diff --git a/src/components/post/tp-text.vue b/src/components/post/tp-text.vue
index 73ae9bbf..f604dff7 100644
--- a/src/components/post/tp-text.vue
+++ b/src/components/post/tp-text.vue
@@ -102,8 +102,10 @@ function getTextStyle(): StyleValue {
const style = >[];
let data: TpText;
if (props.data.insert === "\n") {
- style.push("display: inline");
- return style;
+ if (props.data.attributes?.align || props.data.attributes?.header) {
+ return "display: none";
+ }
+ return "display: inline";
}
if (props.next?.insert === "\n") {
data = {