text: import request from "@/utils/request";
  import { encryptedData } from "@/utils/encrypt";
  import { loginRSA } from "@/config/settings";
  
  export async function login(data) {
    if (loginRSA) {
      data = await encryptedData(data);
    }
    return request({
      url: "/login",
      method: "post",
      data,
    });
  }
  
  export function logout() {
    return request({
      url: "/logout",
      method: "post",
    });
  }
  