bug处理,插件版本同步
This commit is contained in:
@@ -261,6 +261,7 @@ import { useRouter, useRoute } from 'vue-router'
|
||||
import { sendSmsCode, smsLogin } from '@/api/auth'
|
||||
import { fetchProfile, syncProfileFromResume } from '@/api/profile'
|
||||
import { uploadResume } from '@/utils/aiRequest'
|
||||
import { fetchJobIntention, saveJobIntention } from '@/api/jobs'
|
||||
import AgreementPreviewDialog from '@/components/tools/AgreementPreviewDialog.vue'
|
||||
|
||||
// 左侧动画面板图片资源
|
||||
@@ -606,6 +607,17 @@ async function startUpload(file: File) {
|
||||
if (res.code === 0 && res.data?.resumeId) {
|
||||
// 上传成功,同步个人资料
|
||||
await syncProfileFromResume(String(res.data.resumeId))
|
||||
// 等待1秒后同步AI推荐岗位到求职意向
|
||||
await new Promise(resolve => setTimeout(resolve, 1000))
|
||||
const intentionRes = await fetchJobIntention()
|
||||
if (intentionRes.code === '0' && intentionRes.data) {
|
||||
const intention = intentionRes.data
|
||||
// 把 aiCategoryIds 复制到 categoryIds 后保存
|
||||
if (intention.aiCategoryIds && intention.aiCategoryIds.length) {
|
||||
intention.categoryIds = intention.aiCategoryIds.map(Number)
|
||||
await saveJobIntention(intention)
|
||||
}
|
||||
}
|
||||
// 标记接口已返回
|
||||
uploadDone = true
|
||||
// 完成所有步骤的动画后会自动过渡到 success 状态
|
||||
|
||||
Reference in New Issue
Block a user