Просмотр исходного кода

fix(questionsAndAnswers): replace custom preview with global image preview component

replace the manual previewImage call with the built-in $hevueImgPreview method to use the project's unified image preview capability
SanHQin 3 дней назад
Родитель
Сommit
a9d66cf8d0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/components/pages/workPage/components/questionsAndAnswers.vue

+ 1 - 1
src/components/pages/workPage/components/questionsAndAnswers.vue

@@ -3,7 +3,7 @@
     <div class="qaa_title">{{ work.answerQ }}从撒擦撒</div>
     <div class="qaa_title">{{ work.answerQ }}从撒擦撒</div>
     <div class="qaa_img" v-if="work.imageList && work.imageList.length > 0">
     <div class="qaa_img" v-if="work.imageList && work.imageList.length > 0">
       <div v-for="(item, index) in work.imageList" :key="index">
       <div v-for="(item, index) in work.imageList" :key="index">
-        <img :src="item.url" alt="" @click="previewImage(item.url)">
+        <img :src="item.url" alt="" @click="$hevueImgPreview(item.url)">
       </div>
       </div>
     </div>
     </div>
     <div class="qaa_type">{{ lang.ssQAQuestion }}</div>
     <div class="qaa_type">{{ lang.ssQAQuestion }}</div>