From 38712ae83223cb244020e255fc37e1ce35775c45 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 09 四月 2026 13:53:40 +0800
Subject: [PATCH] 优化
---
src/views/h5/faceAuth/index.vue | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/views/h5/faceAuth/index.vue b/src/views/h5/faceAuth/index.vue
index ef9b33a..32f2e91 100644
--- a/src/views/h5/faceAuth/index.vue
+++ b/src/views/h5/faceAuth/index.vue
@@ -101,8 +101,9 @@
},
async startCapture() {
if (isWeixin) {
- const photo = await chooseImage()
- this.shootSuccess('data:image/jpg;base64,' + photo)
+ let photo = await chooseImage()
+ photo = photo.startsWith('data:image') ? photo : ('data:image/jpg;base64,' + photo)
+ this.shootSuccess(photo)
} else {
this.openCameraFlag = true
}
--
Gitblit v1.8.0