소스 검색

页签bug

linwei 1 년 전
부모
커밋
44ee2f2ce0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/components/NewsCom/NewsType3.vue

+ 2 - 1
src/components/NewsCom/NewsType3.vue

@@ -86,6 +86,7 @@ const changeMenu = async (data) =>{
     console.log('点击了',data.item.name,data.item.id);
     let find = rightTopItems.value.find(v => v.id == data.item.id)
     columnIdName.value = find.name
+    pagecurrent.value = 1
     await getArticle(find)
 }
 watch(pagecurrent, async() => {
@@ -112,7 +113,7 @@ const getArticle = async (data) =>{
         })
         commodityList.value = data
 
-        pagecurrent.value = 1
+        // pagecurrent.value = 1
         total.value = res?.data?.total
     }