login.js 504 Bytes
/*
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-05-08 15:03:10
 */
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
export function loginIn (username, password) {
  return request({
    url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`,
    method: "post",
  });
}
export function logout () {
  return request({
    url: `${SERVER.MANAGEMENTAPI}/logout`,
    method: "post",
  });
}