From 5399dff89bb74e491bc5b51750aba78ff5c4084b Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Thu, 04 Aug 2022 16:03:49 +0800
Subject: [PATCH] click
---
src/components/upload/uploadIdCard.vue | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/components/upload/uploadIdCard.vue b/src/components/upload/uploadIdCard.vue
index 94d20a4..84ee392 100644
--- a/src/components/upload/uploadIdCard.vue
+++ b/src/components/upload/uploadIdCard.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2019-08-30 18:04:49
* @LastEditors: zxq
- * @LastEditTime: 2022-08-04 15:59:33
+ * @LastEditTime: 2022-08-04 16:03:30
* @Description:
-->
<template>
@@ -313,11 +313,16 @@
},
// 选择拍照或者相册选项
handleMenuSelect(item, index) {
- console.log(this.$refs.androidInputFileCapture.click(),index);
+ console.log(this.$refs.androidInputFileCapture,index);
if (index === 0) {
- this.$refs.androidInputFileCapture.select();
+ this.$nextTick(() => {
+ this.$refs.androidInputFileCapture.click();
+ })
+
} else {
- this.$refs.androidInputFileImage.select();
+ this.$nextTick(() => {
+ this.$refs.androidInputFileImage.click();
+ })
}
this.selectModel = false;
},
--
Gitblit v1.8.0