af-mobile-client-vue3 1.3.89 → 1.3.90

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.3.89",
4
+ "version": "1.3.90",
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
+ showToast,
8
9
  Icon as VanIcon,
9
10
  Uploader as vanUploader,
10
11
  } from 'vant'
@@ -171,8 +172,11 @@ function triggerCamera() {
171
172
  handlePhotoUpload(result.data)
172
173
  }
173
174
  else {
174
- // 浏览器模式:调起相机输入
175
- openBrowserCameraPicker()
175
+ if (props.isAsyncUpload)
176
+ showToast('此处不允许浏览器上传,请在移动端操作')
177
+ else
178
+ // 浏览器模式:打开文件选择
179
+ openBrowserFilePicker()
176
180
  }
177
181
  },
178
182
  })
@@ -392,8 +396,11 @@ function handleActionSelect(option: any) {
392
396
  })
393
397
  }
394
398
  else {
395
- // 浏览器模式:打开文件选择
396
- openBrowserFilePicker()
399
+ if (props.isAsyncUpload)
400
+ showToast('此处不允许浏览器上传,请在移动端操作')
401
+ else
402
+ // 浏览器模式:打开文件选择
403
+ openBrowserFilePicker()
397
404
  }
398
405
  },
399
406
  })