소스 검색

为空不传

lifanagju_citu 11 달 전
부모
커밋
2eee6a0802
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/recruit/position/index.vue

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

@@ -69,6 +69,7 @@ const getData = async () => {
     const passingStrings = ['content'] // 传递字符串
     const passingOneId = ['positionId'] // 单选且传递整型
     Object.keys(routeQuery).forEach(key => {
+      if (routeQuery[key] === '') return
       if (key === 'city') { // 工作地区id集合,示例值([])
         const city = routeQuery[key]
         const areaIds = []