使用vue 路由钩子函数 报错 Uncaught (in promise) undefined 跳转报错的地方添加第二个参数方法 this.$router.replace('url', () => {})