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?Child&ChildName='+childname

})

},

// 获取url参数

var query = this.$route.query;