|
@@ -5,9 +5,13 @@ import useMainStore from '@/store/useMainStore';
|
|
|
import { BaseLoginUrl, DA_HUA_URL_PREFIX } from '@/constants/constants';
|
|
|
import { useDaHuaStore } from '@/store';
|
|
|
|
|
|
+// const baseURL =
|
|
|
+// process.env.NODE_ENV === 'production'
|
|
|
+// ? 'http://sqpcbg.xt.wenhq.top:8083/api'
|
|
|
+// : '/api';
|
|
|
const baseURL =
|
|
|
process.env.NODE_ENV === 'production'
|
|
|
- ? 'http://sqpcbg.xt.wenhq.top:8083/api'
|
|
|
+ ? 'http://61.147.254.211:30876/YJZH-SQ/api'
|
|
|
: '/api';
|
|
|
|
|
|
const CancelToken = axios.CancelToken;
|
|
@@ -97,6 +101,7 @@ export default function request<T>(
|
|
|
headers: {
|
|
|
Accept: 'application/json',
|
|
|
'Content-Type': 'application/json',
|
|
|
+ AppId: '3bcb760743ea456faba29a1dfb247bf4',
|
|
|
Authorization:
|
|
|
'Bearer ' + window.localStorage.getItem('Authorization') ?? '',
|
|
|
...confifg.headers,
|