Commit 8c30c592 authored by 郝聪敏's avatar 郝聪敏

fix: swiper resize 判空

parent 15473d89
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
mounted() { mounted() {
setTimeout(() => { setTimeout(() => {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.swiper.resize(); this.$refs?.swiper?.resize();
}); });
}, 600); }, 600);
}, },
...@@ -227,11 +227,6 @@ export default { ...@@ -227,11 +227,6 @@ export default {
} else { } else {
this.status = "HAS_NOT_CHANCE"; this.status = "HAS_NOT_CHANCE";
} }
setTimeout(() => {
this.$nextTick(() => {
this.$refs.swiper.resize();
});
}, 500);
}, },
// 客户端不支持 // 客户端不支持
saveImg() { saveImg() {
......
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