|
|
@ -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(() => {
|
|
|
|