|
@@ -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
|