Ver Fonte

修改帮助中心显示标签问题

hurx há 4 dias atrás
pai
commit
f20b7a5d0d
1 ficheiros alterados com 6 adições e 8 exclusões
  1. 6 8
      src/views/i/helpList.vue

+ 6 - 8
src/views/i/helpList.vue

@@ -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>
         </div>
       </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;
         }
       }
     }