封装请求接口
This commit is contained in:
parent
2652b2d608
commit
41eb5e0fd1
@ -1,4 +1,4 @@
|
||||
// import request from '@/utils/request'
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function login(data) {
|
||||
// return request({
|
||||
@ -6,6 +6,11 @@ export function login(data) {
|
||||
// method: 'post',
|
||||
// data
|
||||
// })
|
||||
return request({
|
||||
url: '/sys/login', // 在baseurl里配置了/api
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getInfo(token) {
|
||||
|
Loading…
Reference in New Issue
Block a user