| | |
| | | |
| | | import website from '@/config/website' |
| | | |
| | | /** 获取用户信息 */ |
| | | export const profile = params => get("/user/profile", { |
| | | params |
| | | }) |
| | | |
| | | /** 登录 */ |
| | | export const login = data => |
| | | post("/user/login", { |
| | |
| | | export const logout = () => post("/user/logout") |
| | | |
| | | // 用户登录接口 |
| | | export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => |
| | | request({ |
| | | export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => { |
| | | return request({ |
| | | url: '/blade-auth/oauth/token', |
| | | method: 'post', |
| | | header: { |
| | |
| | | type, |
| | | }, |
| | | }) |
| | | } |