diff --git a/zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/nos/components/NosDetailMaterialsTab.vue b/zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/nos/components/NosDetailMaterialsTab.vue index 24797592..c5c47372 100644 --- a/zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/nos/components/NosDetailMaterialsTab.vue +++ b/zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/nos/components/NosDetailMaterialsTab.vue @@ -413,13 +413,13 @@ const onTakePhoto = async (item) => { try { const watermarkContent = $globalStore.useCommon?.enterpriseName || '深圳市行政执法监督码' const res = await takePhotoWithWaterMark({ content: watermarkContent }) - console.log('[NosDetail] 拍照返回 res:', res, 'imageURL:', res?.imageURL, 'key:', res?.key) - const localPath = res.imageURL || res.key + console.log('[NosDetail] 拍照返回 res:', res, 'imageURL:', res?.result.imageURL, 'key:', res?.result.key) + const localPath = res.result.imageURL || res.result.key console.log('[NosDetail] 解析出的 localPath:', localPath) await pushSdkFileToFileList(item, { localPath, fileName: `photo-${Date.now()}.jpg`, - mimeType: 'image/jpeg', + mimeType: res.result.mimeType || 'image/jpeg', isImage: true, }) } catch (err) {