Преглед на файлове

Merge branch 'master' of http://git.dashitech.com/seimin/zy-wechat

maotao преди 8 месеца
родител
ревизия
7310574f06
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      http/http.js

+ 2 - 1
http/http.js

@@ -10,7 +10,8 @@ let pathname = location.pathname.split('/')[1]; //二级目录
10 10
 pathname = pathname ? '/' + pathname : '';
11 11
 let protocolName = document.location.protocol; //http协议
12 12
 let wsName = protocolName === 'http:' ? 'ws' : 'wss'; //ws协议
13
-export const baseUrl = `${location.origin}${pathname}`;
13
+// export const baseUrl = `${location.origin}${pathname}`;//宜昌二级目录
14
+export const baseUrl = `${location.origin}`;
14 15
 path = `${baseUrl}/service`;
15 16
 dsHost = location.hostname;
16 17
 // #endif