af-mobile-client-vue3 1.4.73 → 1.4.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -173,9 +173,10 @@ function triggerCamera() {
|
|
|
173
173
|
handlePhotoUpload(result.data)
|
|
174
174
|
}
|
|
175
175
|
else if (result.status === 'error') {
|
|
176
|
+
console.error('拍照异常原因:', result.message)
|
|
176
177
|
showDialog({
|
|
177
178
|
title: '拍照异常',
|
|
178
|
-
message:
|
|
179
|
+
message: '拍照失败,请重试',
|
|
179
180
|
})
|
|
180
181
|
}
|
|
181
182
|
},
|
|
@@ -195,6 +196,8 @@ function getImageMimeType(fileName: string): string {
|
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
function handlePhotoUpload(photoData: any) {
|
|
199
|
+
// 看看图片是否正常
|
|
200
|
+
console.log('图片上传前的参数:', photoData)
|
|
198
201
|
// 添加临时预览
|
|
199
202
|
const mimeType = getImageMimeType(photoData.filePath)
|
|
200
203
|
const tempFile = {
|