From b7d347e75d0aeebca06a4f12c7a2aba155c24b1e Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期一, 31 七月 2023 17:01:38 +0800
Subject: [PATCH] 更新配置文件请求地址
---
src/utils/axios.ts | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/utils/axios.ts b/src/utils/axios.ts
index 228c332..012fb06 100644
--- a/src/utils/axios.ts
+++ b/src/utils/axios.ts
@@ -1,11 +1,16 @@
import axios, {AxiosError, AxiosResponse} from 'axios'
import { Session } from '@/utils/storage'
import { ElMessage } from 'element-plus'
+import { confingInfoStore } from '@/stores/StoresConfing'
-
-const BASE_URL = 'https://hemobs.icoldchain.cn'
+// let BASE_URL = 'http://testbs.ihemodialysis.com'
+let BASE_URL = 'https://hemobs.icoldchain.cn'
const TIME_OUT = 10 * 1000
+// setTimeout(()=>{
+// console.log('重新赋值api',confingInfoStore().confingInfo)
+// BASE_URL=confingInfoStore().confingInfo.base_api
+// },10000)
/**
* 创建axios实例
*/
--
Gitblit v1.8.0