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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.4.73",
4
+ "version": "1.4.74",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
package/src/App.vue CHANGED
@@ -101,7 +101,9 @@ input[type='password']::-ms-clear {
101
101
  width: 100%;
102
102
  position: relative;
103
103
  }
104
- /*.app-wrapper {
104
+ /*
105
+ // 此处注释的原因是 height: 100vh 会触发vue的滚动条问题
106
+ .app-wrapper {
105
107
  width: 100%;
106
108
  height: 100vh;
107
109
  position: relative;
@@ -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: result.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 = {