mounted () { window.onresize = () => { return (() => { this.$forceUpdate(); })() } } 转载于:https://www.cnblogs.com/kid526940065/p/10973738.html