| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 登录方法 |
| | | export function login(username, password, code, uuid) { |
| | | export function login(username, password, code, uuid, loginType, verifyType) { |
| | | // export function login(data) { |
| | | const data = { |
| | | username, |
| | | password, |
| | | code, |
| | | uuid |
| | | } |
| | | uuid, |
| | | loginType, |
| | | verifyType |
| | | }; |
| | | return request({ |
| | | url: '/login', |
| | | headers: { |
| | |
| | | // 获取验证码 |
| | | export function getCodeImg() { |
| | | return request({ |
| | | url: '/captchaImage', |
| | | // url: '/captchaImage', |
| | | url: '/captcha/image', |
| | | headers: { |
| | | isToken: false |
| | | }, |
| | | method: 'get', |
| | | timeout: 20000 |
| | | }) |
| | | } |
| | | } |
| | | |
| | | // 获取没有验证码情况,时克英,2023-03-14 |
| | | export function getCodeNone() { |
| | | return request({ |
| | | // url: '/captchaNone', |
| | | url: '/captcha/none', |
| | | headers: { |
| | | isToken: false |
| | | }, |
| | | method: 'get', |
| | | timeout: 20000 |
| | | }) |
| | | } |