图文组件SlideAlbum.vue加载时无法获取到class="img-slide-list"的宽度
zhongke-wang opened this issue · comments
引入import { nextTick } from "vue";
onMounted进行以下改写得到解决
onMounted(async () => {
await nextTick()
// ...原onMounted中的代码
})
好的,谢谢
Vue3 + Pinia 仿抖音,Vue 在移动端的最佳实践 . Imitate TikTok ,Vue Best practices on Mobile
zhongke-wang opened this issue · comments
引入import { nextTick } from "vue";
onMounted进行以下改写得到解决
onMounted(async () => {
await nextTick()
// ...原onMounted中的代码
})
好的,谢谢