From a838547dd556c95b091f22e8f4a52252bf405073 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <l287285524@qq.com>
Date: Fri, 05 Aug 2022 00:30:15 +0800
Subject: [PATCH] 111232

---
 src/components/upload/uploadIdCard.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/components/upload/uploadIdCard.vue b/src/components/upload/uploadIdCard.vue
index f408b60..0a9766c 100644
--- a/src/components/upload/uploadIdCard.vue
+++ b/src/components/upload/uploadIdCard.vue
@@ -318,17 +318,23 @@
     // 选择拍照或者相册选项
     handleMenuSelect(item, index) {
       console.log(this.$refs);
-      console.log(this.$refs.androidInputFileCapture._proto_);
-      console.log(this.$refs.androidInputFileImage._proto_);
-      document.getElementById('androidInputFileCapture').click();
+      console.log(this.$refs.androidInputFileCapture);
+      console.log(this.$refs.androidInputFileImage);
+      console.log(document.getElementById('androidInputFileCapture'));
       if (index === 0) {
         // this.$refs.androidInputFileCapture.dispatchEvent(
         //   new MouseEvent("click")
         // );
-        this.$refs.androidInputFileCapture._proto_.click();
+         setTimeout(() => {
+          this.$refs.androidInputFileCapture.click();
+         },0)
+       
       } else {
         // this.$refs.androidInputFileImage.dispatchEvent(new MouseEvent("click"));
-        this.$refs.androidInputFileImage.click();
+        setTimeout(() => {
+          this.$refs.androidInputFileImage.click();
+         },0)
+        
       }
       this.selectModel = false;
     },

--
Gitblit v1.8.0