给加上 v-if="showScroll"
mounted() { window.onresize = () => { if (this.showScroll === true) this.showScroll = false; window.requestAnimationFrame(() => { this.showScroll = true; }); }; },