|
|
@ -413,13 +413,13 @@ const onTakePhoto = async (item) => { |
|
|
try { |
|
|
try { |
|
|
const watermarkContent = $globalStore.useCommon?.enterpriseName || '深圳市行政执法监督码' |
|
|
const watermarkContent = $globalStore.useCommon?.enterpriseName || '深圳市行政执法监督码' |
|
|
const res = await takePhotoWithWaterMark({ content: watermarkContent }) |
|
|
const res = await takePhotoWithWaterMark({ content: watermarkContent }) |
|
|
console.log('[NosDetail] 拍照返回 res:', res, 'imageURL:', res?.imageURL, 'key:', res?.key) |
|
|
console.log('[NosDetail] 拍照返回 res:', res, 'imageURL:', res?.result.imageURL, 'key:', res?.result.key) |
|
|
const localPath = res.imageURL || res.key |
|
|
const localPath = res.result.imageURL || res.result.key |
|
|
console.log('[NosDetail] 解析出的 localPath:', localPath) |
|
|
console.log('[NosDetail] 解析出的 localPath:', localPath) |
|
|
await pushSdkFileToFileList(item, { |
|
|
await pushSdkFileToFileList(item, { |
|
|
localPath, |
|
|
localPath, |
|
|
fileName: `photo-${Date.now()}.jpg`, |
|
|
fileName: `photo-${Date.now()}.jpg`, |
|
|
mimeType: 'image/jpeg', |
|
|
mimeType: res.result.mimeType || 'image/jpeg', |
|
|
isImage: true, |
|
|
isImage: true, |
|
|
}) |
|
|
}) |
|
|
} catch (err) { |
|
|
} catch (err) { |
|
|
|