Vue的组建重载 项目开发中遇到需要重载组件的需求,根据我自己的理解有3种方法 一、重新加载路由 相当于按F5 整个页面重载 location.reload();//js的方法 //重新替换当前路由 replace this.$router.replace({ path:"/index/main?name=name", name:"index"