vue路由传参params与query传参两种方式的存取

vue里query传参时如何存取

路由



取通过:

this.$route.query.id

vue里params传参如何存取


路由



取通过:

this.$route.params.id

你可能感兴趣的:(vue路由传参params与query传参两种方式的存取)