|
@@ -10,13 +10,13 @@ var URL = process.env.VUE_APP_BASE_API
|
|
|
if (DoMainString) {
|
|
|
URL = DoMainString
|
|
|
}
|
|
|
-Cookies.set('url',URL)
|
|
|
-console.log(process.env.VUE_APP_BASE_API,'===========URL1111')
|
|
|
-console.log(URL,'===========URL')
|
|
|
|
|
|
if(URL.indexOf('/')==0 && URL.length==1){
|
|
|
URL= window.location.protocol + "//"+window.location.host+URL
|
|
|
}
|
|
|
+Cookies.set('url',URL)
|
|
|
+console.log(process.env.VUE_APP_BASE_API,'===========URL1111')
|
|
|
+console.log(URL,'===========URL')
|
|
|
|
|
|
const service = axios.create({
|
|
|
baseURL: URL, // url = base url + request url
|