保存进度!
This commit is contained in:
14
企业级管理系统/web/admin_system/src/utils/api/config.js
Normal file
14
企业级管理系统/web/admin_system/src/utils/api/config.js
Normal 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,
|
||||
};
|
@@ -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,
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user