Browse Source

培训计划

tiaosheng-ms
xuesinan 4 years ago
parent
commit
aa204a2da4
  1. 12
      index.html

12
index.html

@ -111,17 +111,15 @@
getTrainPlan(){
var that = this
var params = JSON.stringify({
projectId: that.projectId
});
fetch(`https://www.tall.wiki/gateway/sports/training/get`, {
fetch(`https://test.tall.wiki/gateway/sports/training/get`, {
headers: new Headers({
'Authorization': 'Bearer ' + that.token,
'Content-Type': 'application/json;charset=utf-8'
'Content-Type': 'application/json; charset=utf-8'
}),
method: 'POST',
mode: 'cors',
body: params
body: JSON.stringify({
projectId: this.projectId
})
})
.then(function(response) {
return response.json();

Loading…
Cancel
Save