我跟着老师做的,不知道为啥后台提示swiper.js?067b:1363 [Violation] Added non-passive event listener to a scroll-blocking ‘touchmove’ event. Consider marking event handler as ‘passive’ to make the page more responsive
<div class="area">
<div class="title border-topbottom">热门城市</div>
<div class="button-list">
<div
class="button-wrapper"
v-for="item of hotCities"
:key="item.id"
@click="handleCityClick(item.name)"
>
<div class="button">{{item.name}}</div>
</div>
</div>
</div>
methods: {
handleCityClick (city) {
alert(city)
}
}
课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握
了解课程