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

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(`


this.$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 发布文章使用:只允许注册用户才可以访问!


原文地址:https://www.cnblogs.com/xgqfrms/p/12295834.html