接口接入
This commit is contained in:
22
src/api/login/index.ts
Normal file
22
src/api/login/index.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import request from '../request';
|
||||
|
||||
//username, password, code, uuid, sourceType
|
||||
export function login(data) {
|
||||
return request({
|
||||
url: '/login',
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 退出方法
|
||||
export function logout() {
|
||||
return request({
|
||||
url: '/logout',
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user