Browse Source

8841图片地址错误11

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

+ 1 - 1
src/api/config.js

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