摘要: refresh.vue export default { beforeRouteEnter (to, from, next) { this.$nextTick(() => { next(vm => { vm.$router.replace(from.path) }) }) } } 使用: this. 阅读全文
posted @ 2020-01-21 11:37 玛卡巴鉲 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: 跳转报错的地方添加第二个参数方法 this.$router.replace('url', () => {}) 阅读全文
posted @ 2020-01-21 11:32 玛卡巴鉲 阅读(2683) 评论(0) 推荐(0) 编辑