Forráskód Böngészése

清空筛选条件

Xiao_123 11 hónapja
szülő
commit
1eeb3b7db8
1 módosított fájl, 9 hozzáadás és 7 törlés
  1. 9 7
      src/views/recruit/company/index.vue

+ 9 - 7
src/views/recruit/company/index.vue

@@ -40,13 +40,6 @@ import MPagination from '@/components/CtPagination'
 const route = useRoute()
 const router = useRouter()
 const clear = ref(false)
-const handleClear = () => {
-  clear.value = true
-  query.value = {
-    ...pageInfo.value
-  }
-  router.push(route.path)
-}
 
 const total = ref(0)
 const items = ref([])
@@ -85,6 +78,15 @@ const getCompanyData = async () => {
   items.value = dealDictArrayData([], list)
 }
 
+const handleClear = () => {
+  clear.value = true
+  query.value = {
+    ...pageInfo.value
+  }
+  router.push(route.path)
+  getCompanyData()
+}
+
 // 刷新页面时url中带有参数请求检索接口
 if (Object.keys(route.query).length) {
   const objData = {}