发布岗位回显企业名称
This commit is contained in:
@@ -718,11 +718,21 @@ const confirm = () => {
|
||||
company: companyData
|
||||
}
|
||||
|
||||
$api.createRequest('/app/user/registerUser', submitData, 'post')
|
||||
$api.createRequest('/registerUser', submitData, 'post')
|
||||
.then(async (resData) => {
|
||||
uni.hideLoading()
|
||||
$api.msg('企业信息保存成功')
|
||||
|
||||
// 如果接口返回了token,需要重新保存token
|
||||
if (resData.token) {
|
||||
try {
|
||||
await userStore.loginSetToken(resData.token)
|
||||
console.log('Token已更新:', resData.token)
|
||||
} catch (error) {
|
||||
console.error('更新Token失败:', error)
|
||||
}
|
||||
}
|
||||
|
||||
// 保存成功后,重新获取用户信息并更新缓存
|
||||
try {
|
||||
await userStore.getUserResume()
|
||||
|
||||
Reference in New Issue
Block a user