|
@@ -14,9 +14,9 @@ if (DoMainString) {
|
|
var reg = /(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)/;
|
|
var reg = /(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)/;
|
|
var browserUrl = window.location.hostname
|
|
var browserUrl = window.location.hostname
|
|
console.log("========url===",reg.test(browserUrl))
|
|
console.log("========url===",reg.test(browserUrl))
|
|
-// if (reg.test(browserUrl)){
|
|
|
|
-// URL = window.location.protocol +"//"+ browserUrl + ":80/"
|
|
|
|
-// }
|
|
|
|
|
|
+if (reg.test(browserUrl)){
|
|
|
|
+ URL = window.location.protocol +"//"+ browserUrl + ":80/"
|
|
|
|
+}
|
|
|
|
|
|
Cookies.set('url',URL)
|
|
Cookies.set('url',URL)
|
|
console.log(process.env.VUE_APP_BASE_API,'===========URL1111')
|
|
console.log(process.env.VUE_APP_BASE_API,'===========URL1111')
|