xjc 7 月之前
父节点
当前提交
4325482723
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      templates/topic/article.html

+ 4 - 4
templates/topic/article.html

@@ -17,11 +17,11 @@
         box-sizing: border-box;
     }
 </style>
-<body>
+<body> 
     <div id="container" v-loading='showloading'>
         <h3>第53届冠军组季军-菜菜</h3>
         <p>2023-02-06</p>
-        <div class="content" v-html="content">
+        <div class="content" :v-html="info.content">
         
         </div>
     </div>
@@ -32,13 +32,13 @@
             el: '#container',
             data: {
                 host:"http://47.107.124.163:8068",
-                content:"",
+                info:{},
                 showloading:false
             },
             methods:{
                 init(){
                     $.get(this.host+"/api/wx/v3/article/detail",{id:140},(res=>{
-                        this.content = res.data.content
+                        this.info = res.data
                     }))
                 }
             },