some fixes
This commit is contained in:
parent
6251a6b25f
commit
245c2fb402
@ -460,14 +460,14 @@
|
||||
})
|
||||
},
|
||||
setTeamStatus() {
|
||||
let params;
|
||||
let params = {};
|
||||
if (localStorage.getItem('userToken')) {
|
||||
params.token = JSON.parse(localStorage.getItem('userToken')).token;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
params.teamStatus = this.teamStatus;
|
||||
this.$axios.put('/api/setTeamStatus', {params: {params}})
|
||||
this.$axios.put('/api/setTeamStatus', null, {params})
|
||||
.then((response) => {
|
||||
console.log(response.data);
|
||||
this.getTeamData();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user