Selaa lähdekoodia

fix: article-detail模板结构错误 — template作容器/多余闭合标签/tag无匹配end

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
liaoxg 1 kuukausi sitten
vanhempi
sitoutus
6cb384d5d4
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      cfc-frontend/pages/article-center/article-detail.vue

+ 2 - 3
cfc-frontend/pages/article-center/article-detail.vue

@@ -9,7 +9,7 @@
       <text class="error-text">{{ errorMsg }}</text>
       <button class="retry-btn" @click="loadDetail(articleId)">重新加载</button>
     </view>
-    <template v-else-if="article">
+    <view v-else-if="article" class="article-wrapper">
       <scroll-view scroll-y class="content-scroll" @scrolltolower="onScrollToBottom">
         <image v-if="article.coverImage" class="detail-cover" :src="article.coverImage" mode="widthFix" />
         <text class="detail-title">{{ article.title }}</text>
@@ -38,7 +38,6 @@
         </view>
 
         <!-- 评论区 -->
-        </view>
         <view style="height: 200rpx;"></view>
       </scroll-view>
 
@@ -53,7 +52,7 @@
           <text class="share-btn-text">海报</text>
         </view>
       </view>
-    </template>
+    </view>
 
     <ContentSharePoster :show="showPoster" :title="article && article.title" :coverImage="article && article.coverImage" :qrCodeBase64="posterQrCode" typeLabel="好文推荐" @close="showPoster = false" />