У меня есть модал bootstrap-vue, и я пытаюсь закрыть его в моей функции щелчка.
this.$refs['my-modal'].hide()
но получите следующую ошибку:
Property 'hide' does not exist on type 'Vue | Element | Vue[] | Element[]'.
Property 'hide' does not exist on type 'Vue'
Я также пытался с jquery
$('#my-modal').modal('hide');
С ошибкой:
Property 'modal' does not exist on type 'JQuery<HTMLElement>'