1、this.$router.addroute()addRoute 添加一条新的路由记录作为现有路由的子路由,如果路由有一个name, 并且已经有一个与之名字相同的路由,它会先删除之前的路由;2、this.$router.addroutes()this.$router.addRoutes(routes: Array<RouteConfig>)动态添加更多的路由规则。参数必须是一个符合
如果出现这种情况,一般有2两种解决办法。 第一种就是降低npm的版本第二种是使用以下命令进行安装npm install @wangeditor/editor --save --legacy-peer-deps npm install @wangeditor/editor-for-vue --save --legacy-peer-deps
// 调用全局挂载的方法,关闭当前页 this.$store.dispatch('tagsView/delView', this.$route) // 关闭之后跳转到所要跳转到的路由 this.$router.push('/basic/compAccount') // 或返回上一步路由 this.$router.go(-1)
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号