| import request from '@/utils/request' | 
|   | 
| // 获取图片验证码 | 
| export function getCaptcha () { | 
|   return request.get('/common/captcha') | 
| } | 
|   | 
| // 根据密码登录 | 
| export function loginByPassword (data) { | 
|   return request.post('/system/login', data) | 
| } | 
|   | 
| // 登出 | 
| export function logout (data) { | 
|   return request.post('/system/logout', data) | 
| } | 
|   | 
| // 修改密码 | 
| export function updatePwd (data) { | 
|   return request.post('/system/updatePwd', data) | 
| } | 
| // 上传接口 | 
| export function upload (data) { | 
|   return request.post('/public/upload', data) | 
| } | 
| // 上传接口 | 
| export function uploadFileLocal (data) { | 
|   return request.post('/public/uploadLocal', data) | 
| } | 
|   | 
| // 获取已登录的用户信息 | 
| export function getUserInfo () { | 
|   return request.get('/system/getUserInfo', { | 
|     autoLogin: false | 
|   }) | 
| } | 
| //  | 
| export function findUserInfo (id) { | 
|   return request.get(`/system/user/findUser?id=${id}`) | 
| } |