|
@@ -1,15 +1,12 @@
|
|
|
import axios, { InternalAxiosRequestConfig, AxiosResponse } from 'axios'
|
|
|
import { tansParams } from './common.ts'
|
|
|
// 创建axios实例
|
|
|
-var url = "https://gateWay.usky.cn/"
|
|
|
-if (typeof window !== 'undefined'){
|
|
|
- if(window.location.host.indexOf("localhost") > -1 || window.location.host.indexOf("192.168.10.165") >-1){
|
|
|
- url = "http://192.168.10.165:13200/"
|
|
|
- }
|
|
|
- if(window.location.host.indexOf("usky.cn") > -1){
|
|
|
- url = "https://gateWay.usky.cn/"
|
|
|
- }
|
|
|
-}
|
|
|
+var url = "http://192.168.10.165:13200/"
|
|
|
+// if (typeof window !== 'undefined'){
|
|
|
+// if(window.location.host.indexOf("localhost") > -1 || window.location.host.indexOf("192.168.10.165") >-1){
|
|
|
+// url = "http://192.168.10.165:13200/"
|
|
|
+// }
|
|
|
+// }
|
|
|
const service: any = axios.create({
|
|
|
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
|
|
baseURL: url,
|