浏览代码

企业详情-职位检索:地区类型回显

Xiao_123 5 月之前
父节点
当前提交
2498231bb4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/recruit/personal/position/components/conditionFilter/commonPath.vue

+ 1 - 1
src/views/recruit/personal/position/components/conditionFilter/commonPath.vue

@@ -127,7 +127,7 @@ watch(
     if (!newVal) selectIdArr.value = []
     if (!newVal) selectIdArr.value = []
     const str = newVal[props.idName]?.split(',')[0]
     const str = newVal[props.idName]?.split(',')[0]
     const arr = str ? str.split('_') : []
     const arr = str ? str.split('_') : []
-    selectIdArr.value = arr?.length? arr : []
+    selectIdArr.value = arr?.length? arr.map(e => Number(e)) : []
     if (!oldVal) { // 仅刷新时触发
     if (!oldVal) { // 仅刷新时触发
       if (props.isRefreshEmit) emits('inputChange', { values: selectIdArr.value, isEmit: true })
       if (props.isRefreshEmit) emits('inputChange', { values: selectIdArr.value, isEmit: true })
     }
     }