Sfoglia il codice sorgente

提交文本输出替换为标签输出

wenmenghao321 1 anno fa
parent
commit
011571e482
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/web/templates/pc/messageDetail.html

+ 2 - 2
src/web/templates/pc/messageDetail.html

@@ -98,9 +98,9 @@
       success:function (res) {
         var data = res.data
         if (data) {
-          $('.msg-title').text(data.title)
+          $('.msg-title').html(data.title)
           $('.msg-date').text(dateMatter(data.createtime || Date.now()))
-          $('.msg-content').text(data.content)
+          $('.msg-content').html(data.content)
         }
       },
       error:function () {}