bugfix
This commit is contained in:
parent
aea8dcb8e8
commit
b42968b4d7
@ -534,19 +534,15 @@
|
|||||||
this.updateStatus();
|
this.updateStatus();
|
||||||
},
|
},
|
||||||
getUser() {
|
getUser() {
|
||||||
const data = {
|
|
||||||
"email" : this.newAdminMail
|
|
||||||
};
|
|
||||||
JSON.stringify(data);
|
|
||||||
const token = JSON.parse(localStorage.getItem('userToken')).token;
|
const token = JSON.parse(localStorage.getItem('userToken')).token;
|
||||||
this.$axios.get(process.env.USER_API + '/account/email', data, {
|
this.$axios.get(process.env.USER_API + '/account/email/' + this.newAdminMail, {
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'Bearer ' + token,
|
'Authorization': 'Bearer ' + token,
|
||||||
}
|
}
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
let newAdminAccount = response.data;
|
let newAdminAccount = response.data;
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.confirmAddAdmin((JSON.parse(response).data));
|
this.confirmAddAdmin(response.data);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user