Skip to content
Snippets Groups Projects
Commit 92f55b09 authored by Pan's avatar Pan
Browse files

fix post bug

parent d5b66068
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ export function loginByEmail(email, password) {
return fetch({
url: '/login/loginbyemail',
method: 'post',
params: data
data
});
}
......
......@@ -25,7 +25,7 @@ const userMap = {
export default {
loginByEmail: config => {
const { email } = config.params;
const { email } = JSON.parse(config.data);
return new Promise((resolve, reject) => {
if (userMap[email.split('@')[0]]) {
setTimeout(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment