Commit 5d14c1a7 authored by 郝聪敏's avatar 郝聪敏

fix: swiper resize 添加延时

parent 3c89a6a2
...@@ -143,9 +143,11 @@ export default { ...@@ -143,9 +143,11 @@ export default {
} }
}, },
mounted() { mounted() {
this.$nextTick(() => { setTimeout(() => {
this.$refs.swiper.resize(); this.$nextTick(() => {
}); this.$refs.swiper.resize();
});
}, 600);
}, },
computed: { computed: {
voteButtonText() { voteButtonText() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment