提交 92f55b09 编写于 作者: P Pan

fix post bug

上级 d5b66068
...@@ -8,7 +8,7 @@ export function loginByEmail(email, password) { ...@@ -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 = { ...@@ -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(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册