From 9a7422b107ac1ed1ad8710bc695eab97c0f1b89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Mon, 17 May 2021 18:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=A1=E7=90=86=E7=AB=AF?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manager/src/api/index.js b/manager/src/api/index.js index 658ad6cd..507aaf04 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -8,13 +8,14 @@ import { getRequestWithNoToken, putRequestWithNoForm, postRequestWithNoForm, - commonUrl, managerUrl } from "@/libs/axios"; import config from "@/config"; +let commonUrl = (process.env.NODE_ENV === 'development' ? config.api_dev.common : config.api_prod.common) + // 文件上传接口 -export const uploadFile = commonUrl + "/common/upload/file"; +export const uploadFile = commonUrl+ "/common/upload/file"; // 验证码渲染图片接口 export const drawCodeImage = commonUrl + "/common/captcha/draw/"; // 获取菜单