login.js 366 Bytes
import request from "@/utils/request";
import SERVER from "./config";

export function loginIn(username, password) {
  return request({
    url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`,
    method: "post",
  });
}
export function loginOut() {
  return request({
    url: `${SERVER.MANAGEMENTAPI}/logout`,
    method: "post",
  });
}