yyb
5 天以前 ee6bc0af77ef179dda201c96c4cbc05817643d77
src/api/login.js
@@ -1,27 +1,14 @@
import request from '@/utils/request'
// 登录方法
export function login(username, password, code, uuid) {
export function loginCheckFactory(username, password, factoryId) {
  const data = {
    username,
    password,
    code,
    uuid
    factoryId
  }
  return request({
    url: '/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}
// 注册方法
export function register(data) {
  return request({
    url: '/register',
    url: '/loginCheckFactory',
    headers: {
      isToken: false
    },
@@ -46,14 +33,11 @@
  })
}
// 获取验证码
export function getCodeImg() {
// 获取公司列表
export function userLoginFacotryList(params) {
  return request({
    url: '/captchaImage',
    headers: {
      isToken: false
    },
    url: '/userLoginFacotryList',
    method: 'get',
    timeout: 20000
    params: params
  })
}