user.js
735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import request from '@/utils/request'
// import { setToken, setRefreshToken } from '@/utils/auth'
export function login(data) {
return request({
url: '/api/User/Login',
method: 'post',
data: {
userCode: data.username,
password: data.password
}
}).then((response) => {
return { ...response, code: 'Success' }
})
}
export function logout() {
return Promise.resolve()
}
// 权限获取
export function getLicense() {
return request({
url: '/api/System/GetLicense',
method: 'get'
// data,
})
}
// 权限导入
export function importLicense(data) {
return request({
url: '/api/System/ImportLicense?content=' + encodeURIComponent(data),
method: 'get'
// data,
})
}