|
@@ -170,7 +170,6 @@ const getValue = async () => {
|
|
|
SnackText = SnackText ? SnackText : query.SnackText
|
|
|
}
|
|
|
}
|
|
|
- // console.log('id:', id)
|
|
|
if (id) {
|
|
|
Snackbar.warning(SnackText || '请填写完整后提交!')
|
|
|
return
|
|
@@ -194,11 +193,7 @@ const getValue = async () => {
|
|
|
obj[newKey] = data[key]
|
|
|
}
|
|
|
})
|
|
|
- // const defaultObj = { avatar: "", person: {}, advantage: { content: '' }, tag: { tagList: [] }, jobInterested: [], eduExp: [], workExp: [], trainExp: [] } // 必传字段
|
|
|
- // const defaultObj = { avatar: null, person: null, advantage: null, tag: null, jobInterested: null, eduExp: null, workExp: null, trainExp: null } // 必传字段
|
|
|
- // obj = { ...defaultObj, ...obj }
|
|
|
}
|
|
|
- // console.log('123456:', obj)
|
|
|
return obj && Object.keys(obj).length ? JSON.stringify(obj) : null
|
|
|
}
|
|
|
|
|
@@ -210,8 +205,6 @@ const submit = async () => {
|
|
|
loading.value = true
|
|
|
await saveResumeInfo(obj)
|
|
|
await useUserStore().getUserBaseInfos() // 更新用户信息
|
|
|
- // Snackbar.success(t('common.saveMsg'))
|
|
|
- // setTimeout(() => { window.location.reload() }, 1000) // 刷新页面
|
|
|
Confirm('系统提示', `提交成功,是否前往在线简历查看?`, { sureText: '立即前往' }).then(() => {
|
|
|
window.location.href = '/recruit/personal/personalCenter/resume/online'
|
|
|
})
|