diff --git a/index.html b/index.html
index d332104..a9dce32 100644
--- a/index.html
+++ b/index.html
@@ -111,9 +111,19 @@
getTrainPlan(){
var that = this
+ var params = JSON.stringify({
+ param: {
+ projectId: that.projectId
+ }
+ });
fetch(`https://www.tall.wiki/gateway/sports/training/get`, {
- method: 'post',
- body: 'projectId' = this.projectId
+ headers: new Headers({
+ 'Authorization': 'Bearer ' + that.token,
+ 'Content-Type': 'application/json;charset=utf-8'
+ }),
+ method: 'POST',
+ mode: 'cors',
+ body: params
})
.then(function(response) {
return response.json();