摘要:
refresh.vue export default { beforeRouteEnter (to, from, next) { this.$nextTick(() => { next(vm => { vm.$router.replace(from.path) }) }) } } 使用: this. 阅读全文
摘要:
跳转报错的地方添加第二个参数方法 this.$router.replace('url', () => {}) 阅读全文