|
@@ -4,11 +4,12 @@ import store from '@/store'
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
|
|
|
//获取当前url
|
|
|
-
|
|
|
+const DOoMainString = document.querySelector("html").getAttribute("domain");
|
|
|
+console.log(DOoMainString,'======DOoMainString=====')
|
|
|
var URL = process.env.VUE_APP_BASE_API
|
|
|
console.log(URL,'===========URL')
|
|
|
console.log(process.env.VITE_DOMAIN,'===========VITE_DOMAIN')
|
|
|
-console.log(this.$DoMain,'======this.$DOMAIN=====')
|
|
|
+console.log(this.DoMain,'======this.DOMAIN=====')
|
|
|
//获取当前url
|
|
|
if(URL.indexOf('/')==0 && URL.length==1){
|
|
|
URL= window.location.protocol + "//"+window.location.host+URL
|