This commit is contained in:
李志鹏
2025-10-23 16:37:59 +08:00
parent ea81b784d6
commit b6124a9483
3 changed files with 98 additions and 53 deletions

View File

@@ -36,15 +36,15 @@
}
// 生成照片
const handleGenerate = () => {
console.log('生成照片')
if (!fileData.file) return
const formData = new FormData()
formData.append('customerId', "1")
formData.append('visitRecordId', "1")
formData.append('file', fileData.file)
uploadCustomerPhoto(formData).then(res => {
console.log(res)
// router.push({ name: 'customize' })
console.log(res, res.photoUrl)
router.push({ name: 'customize' })
})
}
</script>