摘要: 项目中遇到禁止url带参数,于是整理一下常用的两种传参方式的区别吧 一、this.$route.query的使用 1.传参数 this.$router.push({ path: '/trading', query:{ id:id, } }) 2.获取参数( query相对应的是path params 阅读全文
posted @ 2021-08-19 14:48 微微一笑绝绝子 阅读(2705) 评论(1) 推荐(1) 编辑