af-mobile-client-vue3 1.4.36 → 1.4.37
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
|
@@ -364,11 +364,6 @@ const actionOptions = [
|
|
|
364
364
|
function handleUploadAreaClick() {
|
|
365
365
|
if (props.readonly)
|
|
366
366
|
return
|
|
367
|
-
// 如果是微信, 直接使用 浏览器模式
|
|
368
|
-
if (import.meta.env.VITE_APP_WEI_XIN) {
|
|
369
|
-
openBrowserFilePicker()
|
|
370
|
-
return
|
|
371
|
-
}
|
|
372
367
|
if (props.attr?.uploadImage) {
|
|
373
368
|
showActionSheet.value = true
|
|
374
369
|
}
|
|
@@ -380,9 +375,17 @@ function handleUploadAreaClick() {
|
|
|
380
375
|
function handleActionSelect(option: any) {
|
|
381
376
|
showActionSheet.value = false
|
|
382
377
|
if (option.key === 'camera') {
|
|
378
|
+
if (import.meta.env.VITE_APP_WEI_XIN) {
|
|
379
|
+
openBrowserCameraPicker()
|
|
380
|
+
return
|
|
381
|
+
}
|
|
383
382
|
triggerCamera()
|
|
384
383
|
}
|
|
385
384
|
else if (option.key === 'file') {
|
|
385
|
+
if (import.meta.env.VITE_APP_WEI_XIN) {
|
|
386
|
+
openBrowserFilePicker()
|
|
387
|
+
return
|
|
388
|
+
}
|
|
386
389
|
mobileUtil.execute({
|
|
387
390
|
funcName: 'photoAlbum',
|
|
388
391
|
param: {},
|