Ver Fonte

页签bug

linwei há 1 ano atrás
pai
commit
44ee2f2ce0
1 ficheiros alterados com 2 adições e 1 exclusões
  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
     }