Tag:Params and query in Vue

  • The difference between params and query in Vue router

    Time:2021-2-21

    1. Different introduction methods Query should be introduced with path this.$router.push({ path: ‘test’, query: { type: 2, Detail: ‘ha ha’ } }) Params should be introduced with name this.$router.push({ name: ‘test’, query: { type: 2, Detail: ‘ha ha’ } }) 2. Different URLs Query display parameters in URL http://localhost : 8080 / detail? Type = […]