Bladeren bron

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 5 maanden geleden
bovenliggende
commit
cf1788d599

+ 2 - 2
src/views/recruit/personal/PersonalCenter/resume/online/analysis/avatar.vue

@@ -68,8 +68,8 @@ const avatarResult = ref(props.data)
 // 图片裁剪
 const handleHideCopper = async (res) => {
   isShowCopper.value = false
-  avatarResult.value = res?.result.dataURL || ''
-  // avatarResult.value = res?.result ? Reflect.get(res.result, 'dataURL') : ''
+  avatarResult.value = res?.result.blobURL || ''
+  // avatarResult.value = res?.result.dataURL || '' // dataURL文件名过长或者过大不成功
 }
 
 const submit = async () => {

+ 2 - 2
src/views/recruit/personal/PersonalCenter/resume/online/index.vue

@@ -130,8 +130,7 @@ const handleImportAttachment = () => {
   showAttachment.value = true
 }
 
-// const result = ref(JSON.parse(JSON.stringify(dataObj)))
-const result = ref({})
+const result = ref({}) // ref(JSON.parse(JSON.stringify(dataObj))) // 测试
 const fileUrl = ref('')
 const showAnalysis = ref(false)
 const handleAttachmentSubmit = async (val) => {
@@ -144,6 +143,7 @@ const handleAttachmentSubmit = async (val) => {
   try {
     const data = await resumeParser2({ fileUrl: fileUrl.value })
     result.value = data || {}
+    // result.value = {person: data.person} || {} // 测试
     showAnalysis.value = true
   } catch (error) {
     console.log(error)