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;

posted @ 2017-07-21 11:13  Y.anCy  阅读(6340)  评论(0编辑  收藏  举报