chenyc
2023-05-31 0f6b74c98096fa33a379e8756ffdae693e6f6c83
更新环境变量
1个文件已修改
2个文件已添加
10 ■■■■■ 已修改文件
.env.development 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/axios.ts 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
New file
@@ -0,0 +1,4 @@
`.env.development`
// 开发环境配置
# VITE_BASIC_API = 'https://hemobs.icoldchain.cn/'
VITE_BASIC_API = 'http://testbs.ihemodialysis.com/'
.env.production
New file
@@ -0,0 +1,3 @@
`.env.production`
// 正式环境配置
VITE_BASIC_API = 'https://hemobs.icoldchain.cn/'
src/utils/axios.ts
@@ -7,8 +7,9 @@
import { Session } from '@/utils/storage'
let controllers: AbortController[] = []
const BASE_URL = import.meta.env.VITE_BASIC_API
const BASE_URL = 'https://hemobs.icoldchain.cn'
// const BASE_URL = 'https://hemobs.icoldchain.cn'
// const  BASE_URL='http://testbs.ihemodialysis.com'
const TIME_OUT = 10 * 1000