浏览代码

为空不传

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 = []