xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

vue router & query params

vue router & query params

vue router get params from url

https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=vue route

$route.params.id

https://router.vuejs.org/guide/essentials/dynamic-matching.html

https://router.vuejs.org/guide/essentials/passing-props.html#object-mode

this.$route !== this.$router


    init() {
      log(`\n\n\nthis.$route`, this.$route);
      log(`this.$route.hash`, this.$route.hash);
      log(`this.$route.params`, this.$route.params);
      log(`this.$route.query`, this.$route.query);
      // const activityId = this.$route.query.uid;
      // this.fetchDetailsData({
      //   activityId,
      // });
    },


    backToSelectSeatSystem() {
      this.$router.replace({
        path: `/operate-tool/select-seat-system`,
      });
    },

QA

https://stackoverflow.com/questions/42309986/vuejs-get-url-query

demo

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-02-11 17:19  xgqfrms  阅读(217)  评论(1编辑  收藏  举报