|
@@ -199,13 +199,13 @@ const handleStore = async () => {
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
})
|
|
|
try {
|
|
|
- const { results } = await talentGatherApi.talentsAdd(JSON.stringify(params))
|
|
|
+ const result = await talentGatherApi.talentsAdd(JSON.stringify(params))
|
|
|
message.success('入库成功!')
|
|
|
dialogVisible.value = false
|
|
|
// 刷新列表
|
|
|
emit('refresh')
|
|
|
|
|
|
- if (results?.length && results[0]?.data?.duplicate_reason.includes('疑似重复')) {
|
|
|
+ if (result?.message.includes('疑似重复')) {
|
|
|
message.notifyWarning('发现疑似重复记录,请前往人才去重处理')
|
|
|
}
|
|
|
} finally {
|