Browse Source

Merge remote-tracking branch 'origin/termLink0615' into test

zhouna 4 years ago
parent
commit
12b667febf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/api/config.js

+ 1 - 1
src/api/config.js

@@ -1,6 +1,6 @@
 // const testUrl = 'http://223.93.170.82:23650'
 const testUrl = ''
-const host = window.location.host;
+const host = window.location.hostname;
 const imgHost = host.indexOf("localhost")>-1?'http://192.168.2.241:82':('http://'+window.location.host+':82');
 export default {
     //imgHost: 'http://192.168.2.236:82',      //富文本编辑器图片回传地址