this.$http.post ||this.$http.put||vue 获取url参

getClasslist() {
this.$http.get('/xxxxx/childlist', {
params: {
ServiceUnitId: localStorage.getItem("CooperatedId"),
}
}).then((res) => {
}

this.$http.get('xxxxxxxxxxxw/xlogin',{params:{
Code:codeVal,
AutoCreateChild:false
}}).then((res) => {}
}

// 一刷新就执行:
mounted() {
this.getUserslist();
this.getClasslist();
}

this.$http.post
this.$http.put

skippersonalinfo: function(id,childname) {
router.push({
path: '/personalinfo?ChildId=' + id+'&ChildName='+childname
})
},
// 获取url参数
var query = this.$route.query;

转载于:https://www.cnblogs.com/yancongyang/p/7216711.html

你可能感兴趣的:(this.$http.post ||this.$http.put||vue 获取url参)