保存进度!

This commit is contained in:
2022-12-23 16:34:36 +08:00
parent e16afd1696
commit 1eae5068fe
4 changed files with 55 additions and 15 deletions

View File

@@ -0,0 +1,14 @@
/*
* @Author: Kane
* @Date: 2022-12-23 11:10:23
* @LastEditors: Kane
* @LastEditTime: 2022-12-23 11:11:58
* @FilePath: \admin_system\src\utils\api\config.js
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
export const API_URL = {
URL_LOGIN: process.env.VUE_APP_API_URL_LOGIN,
};

View File

@@ -2,22 +2,24 @@
* @Author: Kane
* @Date: 2022-12-22 09:10:20
* @LastEditors: Kane
* @LastEditTime: 2022-12-22 20:54:10
* @LastEditTime: 2022-12-23 15:28:14
* @FilePath: \admin_system\src\utils\api\info\account.js
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
import instance from "@/utils/api/request";
const URL_LOGIN = "http://localhost:8000/admin-sys/";
import { API_URL } from "@/utils/api/config"; //所有API的地址
export function Login(userInfo)
{
//debugger;
console.log(API_URL.URL_LOGIN);
return instance.request(
{
method: "post",
url: URL_LOGIN,
url: API_URL.URL_LOGIN,
userInfo,
}
);