lifanagju_citu před 11 měsíci
rodič
revize
b49fd3164e
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      src/views/recruit/position/index.vue

+ 1 - 3
src/views/recruit/position/index.vue

@@ -88,8 +88,7 @@ const getData = async () => {
 }
 
 // 页面刷新
-if (routeQuery) getData() 
-// getData() 城市会触发刷新
+if (routeQuery && Object.keys(routeQuery).length) getData() 
 
 // 参数改变后刷新路由,触发数据刷新
 const updateRouter = () => {
@@ -98,7 +97,6 @@ const updateRouter = () => {
     return res
   }, '') : ''
   router.push(`${route.path}?${str}`)
-  // router.push(`${route.path}?${str1}`)
   getData()
 }