|
@@ -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)
|