From c9a0817f7593135080ae814ec55faec903f39269 Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <l287285524@qq.com> Date: Thu, 04 Aug 2022 17:24:43 +0800 Subject: [PATCH] 1 --- src/components/upload/uploadIdCard.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/upload/uploadIdCard.vue b/src/components/upload/uploadIdCard.vue index 0c0dcaf..e39aaf8 100644 --- a/src/components/upload/uploadIdCard.vue +++ b/src/components/upload/uploadIdCard.vue @@ -315,11 +315,11 @@ handleMenuSelect(item, index) { console.log(this.$refs.androidInputFileCapture.click(),index); if (index === 0) { - this.$refs.androidInputFileCapture.dispatchEvent(new MouseEvent('click')) - // this.$refs.androidInputFileCapture.select(); + // this.$refs.androidInputFileCapture.dispatchEvent(new MouseEvent('click')) + this.$refs.androidInputFileCapture.touch(); } else { - this.$refs.androidInputFileImage.dispatchEvent(new MouseEvent('click')) - // this.$refs.androidInputFileImage.select(); + // this.$refs.androidInputFileImage.dispatchEvent(new MouseEvent('click')) + this.$refs.androidInputFileImage.touch(); } this.selectModel = false; }, -- Gitblit v1.8.0