| | |
| | | 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' |
| | | const BASE_URL = confingInfoStore().confingInfo.base_api |
| | | 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实例 |
| | | */ |