af-mobile-client-vue3 1.4.66 → 1.4.67

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.66",
4
+ "version": "1.4.67",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -5,6 +5,7 @@ import { mobileUtil } from '@af-mobile-client-vue3/utils/mobileUtil'
5
5
  import { formatNow } from '@af-mobile-client-vue3/utils/timeUtil'
6
6
  import {
7
7
  ActionSheet,
8
+ showDialog,
8
9
  Icon as VanIcon,
9
10
  Uploader as vanUploader,
10
11
  } from 'vant'
@@ -171,6 +172,12 @@ function triggerCamera() {
171
172
  if (result.status === 'success') {
172
173
  handlePhotoUpload(result.data)
173
174
  }
175
+ else if (result.status === 'error') {
176
+ showDialog({
177
+ title: '拍照异常',
178
+ message: result.message || '拍照失败,请重试',
179
+ })
180
+ }
174
181
  },
175
182
  })
176
183
  }