/* * @Author: 曹文丽 caowenli@yuan-info.com * @Date: 2022-10-31 09:10:08 * @LastEditors: 曹文丽 caowenli@yuan-info.com * @LastEditTime: 2023-04-27 20:56:05 * @FilePath: \yuan-huoling-browser\src\api\login.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { http } from "@/utils/https"; import qs from "qs"; export const getCaptcha = (key) => { return http.get( `/captcha?key=${key}`, {}, { responseType: "blob", } ); }; export const loginRequest = (params) => { return http.request("post", "/oauth/token", qs.stringify(params), { headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, }); }; export const userInfoRequest = (config) => { return http.get("/user", null, config); }; export const getUserRoleMenu = () => { return http.get(`/role/initPermission`); }; export const logooutRequest = () => { return http.delete("/signout"); }; export const checkLicense = () => { // http://10.1.1.65:8090/license-manage-api/license/checkLicense return http.post("/license/checkLicense"); }; export const getModifyInfo = (data) => { return http.get("common-config/pass-hint-msg", data); };