rewrite axios && mock data
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { fetch } from 'utils/fetch';
|
||||
import fetch from 'utils/fetch';
|
||||
|
||||
export function loginByEmail(email, password) {
|
||||
const data = {
|
||||
@@ -19,7 +19,6 @@ export function logout() {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function getInfo(token) {
|
||||
return fetch({
|
||||
url: '/user/info',
|
||||
|
Reference in New Issue
Block a user