@@ -73,9 +73,7 @@
</el-button>
<h3 class="detail-title">{{ currentDetailTitle }}</h3>
</div>
- <div class="detail-content">
- <p>{{ currentDetailContent }}</p>
- </div>
+ <div class="detail-content" v-html="currentDetailContent"></div>
</main>
@@ -472,12 +470,12 @@ onMounted(() => {
}
.detail-content {
- p {
- font-size: 15px;
- line-height: 1.8;
- color: #666;
+ font-size: 15px;
+ line-height: 1.8;
+ color: #666;
+
+ :deep(p) {
margin: 0;
- white-space: pre-line;