This commit is contained in:
cxc
2023-02-13 17:04:42 +08:00
parent 221c466bdb
commit 730a93c4d3
7 changed files with 67 additions and 42 deletions

View File

@ -5,9 +5,9 @@ import { errorCode } from "@/utils/errorCode";
const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
// baseURL: import.meta.env.VITE_APP_BASE_API,
baseURL: import.meta.env.VITE_APP_BASE_API,
// 超时
baseURL: "/dev-api",
// baseURL: "/dev-api",
timeout: 100000,
});