修改管理端上传地址错误

master
lemon橪 2021-05-17 18:18:24 +08:00
parent c457f6abc9
commit 9a7422b107
1 changed files with 3 additions and 2 deletions

View File

@ -8,13 +8,14 @@ import {
getRequestWithNoToken, getRequestWithNoToken,
putRequestWithNoForm, putRequestWithNoForm,
postRequestWithNoForm, postRequestWithNoForm,
commonUrl,
managerUrl managerUrl
} from "@/libs/axios"; } from "@/libs/axios";
import config from "@/config"; 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/"; export const drawCodeImage = commonUrl + "/common/captcha/draw/";
// 获取菜单 // 获取菜单