Ver Fonte

为空不传

lifanagju_citu há 11 meses atrás
pai
commit
2eee6a0802
1 ficheiros alterados com 1 adições e 0 exclusões
  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 = []