Commit 3abc6b14 authored by Pan's avatar Pan Committed by 花裤衩

refactor:change fetch => fetch

parent 52bfe11b
import fetch from '@/utils/fetch'
import request from '@/utils/request'
export function login(username, password) {
return fetch({
return request({
url: '/user/login',
method: 'post',
data: {
......@@ -12,7 +12,7 @@ export function login(username, password) {
}
export function getInfo(token) {
return fetch({
return request({
url: '/user/info',
method: 'get',
params: { token }
......@@ -20,7 +20,7 @@ export function getInfo(token) {
}
export function logout() {
return fetch({
return request({
url: '/user/logout',
method: 'post'
})
......
import fetch from '@/utils/fetch'
import request from '@/utils/request'
export function getList(params) {
return fetch({
return request({
url: '/table/list',
method: 'get',
params
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment