0👍
Do not forget that if you use :ref
inside v-for
then it becomes an Array – so you should change your code
async takeimage(name) {
let el = this.$refs[name][0]; // <--- use an Array
- [Vuejs]-Vue Composition API TypeScript ref typing not working
- [Vuejs]-How to make Switching button in Laravel Vuejs
Source:stackexchange.com