zxl
3 天以前 874e9cce3b2f9b6649ab72047d98e4244a345b3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import http from '@/utils/request.js'
 
export const login = (params) => {
  return http.request({
    url: '/login',
    headers:{
      isToken: false,
      repeatSubmit: false,
    },
    method: 'POST',
    data: params
  })
}
 
export const getCodeImg = ()=> {
  return http.request({
    url: '/captchaImage',
    headers: {
      isToken: false
    },
    method: 'GET',
    timeout: 20000
  })
}
 
export const loginOut = ()=>{
  return http.request({
    url: '/logout',
    method: 'POST',
  })
}