1.建一个空白的vue文件,添加上如下代码data() { this.$router.go(-1) return {}} 2.在需要横屏竖屏切换的页面中加入如下代码:beforeMount() { window.addEventListener('orientationchange', () => { this.$router.push({ path: '/空vue的路由地址' }) })}