forked from AkkomaGang/admin-fe
fix post bug
This commit is contained in:
parent
d5b660681a
commit
92f55b093f
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ export function loginByEmail(email, password) {
|
||||||
return fetch({
|
return fetch({
|
||||||
url: '/login/loginbyemail',
|
url: '/login/loginbyemail',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
params: data
|
data
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ const userMap = {
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
loginByEmail: config => {
|
loginByEmail: config => {
|
||||||
const { email } = config.params;
|
const { email } = JSON.parse(config.data);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (userMap[email.split('@')[0]]) {
|
if (userMap[email.split('@')[0]]) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
Loading…
Reference in a new issue