1.
//$router.push 可以跳到指定路径
//push路径 :使用量大
this.$router.push('/productlist')
2.
//push 名字 使用量小
this.$router.push({name:'ProductList' })
3.
确保在router/index.js 里面配置了 路径和名字
4.
微信扫一扫
1.
//$router.push 可以跳到指定路径
//push路径 :使用量大
this.$router.push('/productlist')
2.
//push 名字 使用量小
this.$router.push({name:'ProductList' })
3.
确保在router/index.js 里面配置了 路径和名字
4.
相关推荐