mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-07 09:28:53 +08:00
refactor: 更新 API 请求路径与配置
This commit is contained in:
@@ -6,16 +6,13 @@ import Cookies from "js-cookie";
|
||||
import {v4 as uuidv4} from 'uuid';
|
||||
|
||||
// 统一请求路径前缀
|
||||
export const commonUrl =
|
||||
export const managerApiUrl =
|
||||
process.env.NODE_ENV === "development"
|
||||
? BASE.API_DEV.common
|
||||
: BASE.API_PROD.common;
|
||||
export const managerUrl =
|
||||
(process.env.NODE_ENV === "development"
|
||||
? BASE.API_DEV.manager
|
||||
: BASE.API_PROD.manager) + BASE.PREFIX;
|
||||
: BASE.API_PROD.manager;
|
||||
export const managerUrl = managerApiUrl + BASE.PREFIX;
|
||||
// 文件上传接口
|
||||
export const uploadFile = commonUrl + "/common/common/upload/file";
|
||||
export const uploadFile = managerApiUrl + "/manager/common/upload/file";
|
||||
|
||||
|
||||
const service = axios.create({
|
||||
|
||||
Reference in New Issue
Block a user