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 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12295834.html
未经授权禁止转载,违者必究!