Ver Fonte

报告章节详情切换再次点击图片预览bug

jwyu há 3 anos atrás
pai
commit
924eb32ac3
1 ficheiros alterados com 9 adições e 7 exclusões
  1. 9 7
      src/views/report/ChapterDetail.vue

+ 9 - 7
src/views/report/ChapterDetail.vue

@@ -15,13 +15,6 @@ const getInfo=async ()=>{
 }
 getInfo()
 
-//点击切换章节
-const chapterTypeChange=(item)=>{
-    research_report_type_id.value=item.ResearchReportTypeId
-    info.value=null
-    getInfo()
-}
-
 // 获取底部列表
 let botList=ref([])
 const getBotList=async ()=>{
@@ -59,6 +52,15 @@ onMounted(()=>{
 
 // 免责声明
 let disclaimers=ref(false)
+
+//点击切换章节
+const chapterTypeChange=(item)=>{
+    research_report_type_id.value=item.ResearchReportTypeId
+    info.value=null
+    preViewImgs.value=[]
+    preViewImgIndex.value=0
+    getInfo()
+}
 </script>