linwei před 1 rokem
rodič
revize
44ee2f2ce0
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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
     }