瀏覽代碼

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