|
@@ -8,15 +8,12 @@ import { SERVER_URL } from '@/utils/configs'
|
|
|
|
|
|
// var aa = process.env.VUE_APP_BASE_API
|
|
|
var aa = SERVER_URL
|
|
|
-console.log(SERVER_URL,'===')
|
|
|
-console.log(process.env.VUE_APP_BASE_API1)
|
|
|
-console.log(process.env.VUE_APP_BASE_API2)
|
|
|
-console.log(process.env.VUE_APP_BASE_API3)
|
|
|
-console.log(process.env.VUE_APP_BASE_API4)
|
|
|
+// console.log(SERVER_URL,'===')
|
|
|
//获取当前url
|
|
|
-if(aa.indexOf('/')==0 && aa.length==1){
|
|
|
- aa= window.location.protocol + "//"+window.location.host+aa
|
|
|
-}
|
|
|
+// if(aa.indexOf('/')==0 && aa.length==1){
|
|
|
+// // aa= window.location.protocol + "//"+window.location.host+aa
|
|
|
+// aa= window.location.protocol + "//"+window.location.host+aa
|
|
|
+// }
|
|
|
const service = axios.create({
|
|
|
baseURL: aa, // url = base url + request url
|
|
|
withCredentials: true, // send cookies when cross-domain requests
|