scrollIntoView导致页面上移
scrollIntoView导致页面上移
解决
this.$nextTick(() => {
let selectEventDom = document.querySelector(".checkClass");
selectEventDom.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' })
});
this.$nextTick(() => {
let selectEventDom = document.querySelector(".checkClass");
selectEventDom.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' })
});