Skip to content

Commit

Permalink
fix(uploader): 修复安卓环境下无法唤起摄像头问题 (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
developeryvan authored Sep 18, 2023
1 parent e9ec2b7 commit a6b5342
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/packages/__VUE/uploader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ export default create({
disabled: props.disabled
};
if (props.capture) params.capture = 'camera';
if (props.capture) {
params.capture = 'camera';
if (!params.accept) {
params.accept = 'image/*';
}
}
return h('input', params);
};
Expand Down

0 comments on commit a6b5342

Please sign in to comment.