Browse Source

Merge branch 'feature/url_str' of duanxiaoduan/tmr-admin into develop

xuyiping 1 year ago
parent
commit
a61a10008a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/request.js

+ 2 - 2
src/utils/request.js

@@ -12,10 +12,10 @@ if (DoMainString) {
 }
 
 var reg = /http:\/\/.*\.[0-9]{1,4}(:[\w]+)?/g
-var browserUrl = window.location.hostname
+var browserUrl = window.location.host
 
 if (reg.test(browserUrl)){
-  URL = browserUrl
+  URL = browserUrl + ":8082"
 }
 
 Cookies.set('url',URL)