| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 登录方法 |
| | | export function login(username, password, code, uuid,identity) { |
| | | export function login(username, password, code, uuid) { |
| | | const data = { |
| | | username, |
| | | password, |
| | | code, |
| | | uuid, |
| | | identity |
| | | } |
| | | return request({ |
| | | url: '/system/account/login', |
| | | url: '/login', |
| | | headers: { |
| | | isToken: false, |
| | | repeatSubmit: false |
| | |
| | | // 退出方法 |
| | | export function logout() { |
| | | return request({ |
| | | url: '/system/account/logout', |
| | | url: '/logout', |
| | | method: 'post' |
| | | }) |
| | | } |
| | |
| | | // 获取验证码 |
| | | export function getCodeImg() { |
| | | return request({ |
| | | url: '/system/captcha/captchaImage', |
| | | url: '/captchaImage', |
| | | headers: { |
| | | isToken: false |
| | | }, |
| | |
| | | // 删除图片 |
| | | export function delPic(path) { |
| | | return request({ |
| | | url: '/system/common/removeFile', |
| | | headers: { |
| | | isToken: false |
| | | }, |
| | | url: '/common/removeFile', |
| | | method: 'delete', |
| | | params: path, |
| | | timeout: 20000 |