Blame view
src/api/user.js
524 Bytes
80a28914e init |
1 2 3 |
import request from '@/utils/request' export function login(data) { |
a795fa7b1 auto commit the c... |
4 |
console.log('login....', data) |
80a28914e init |
5 6 7 8 9 10 11 12 |
return request({ url: '/vue-admin-template/user/login', method: 'post', data }) } export function getInfo(token) { |
a795fa7b1 auto commit the c... |
13 |
console.log('getInfo....', token) |
80a28914e init |
14 15 16 17 18 19 20 21 |
return request({ url: '/vue-admin-template/user/info', method: 'get', params: { token } }) } export function logout() { |
a795fa7b1 auto commit the c... |
22 |
console.log('logout....') |
80a28914e init |
23 24 25 26 27 |
return request({ url: '/vue-admin-template/user/logout', method: 'post' }) } |