user.js
407 Bytes
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()
}