vue项目之动态改变url参数
let query = this.$router.history.current.query;let path = this.$router.history.current.path;//对象的拷贝let newQuery = JSON.parse(JSON.stringify(query));newQuery.pid = pi...
·
let query = this.$router.history.current.query;
let path = this.$router.history.current.path;
//对象的拷贝
let newQuery = JSON.parse(JSON.stringify(query));
newQuery.pid = pid;
this.$router.push({ path, query: newQuery });
更多推荐
已为社区贡献18条内容
所有评论(0)