mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化代码
This commit is contained in:
parent
ef7b6757cd
commit
b7ed8afdf8
2
app.js
2
app.js
@ -41,7 +41,7 @@ let opts = {
|
||||
|
||||
app.use('/callComponent',proxy('http://proxy.homecommunity.cn:9011',opts));
|
||||
app.use('/app',proxy('http://proxy.homecommunity.cn:9011',opts));
|
||||
|
||||
app.use('/ws',proxy('http://proxy.homecommunity.cn:9011',opts));
|
||||
// app.use('/callComponent',proxy('http://192.168.1.106:8012',opts));
|
||||
// app.use('/app',proxy('http://192.168.1.106:8012',opts));
|
||||
|
||||
|
||||
@ -215,11 +215,11 @@
|
||||
let url = '';
|
||||
if (_protocol.startsWith('https')) {
|
||||
url =
|
||||
"wss://" + window.location.host + "/app/message/" +
|
||||
"wss://" + window.location.host + "/ws/message/" +
|
||||
_userId;
|
||||
} else {
|
||||
url =
|
||||
"ws://" + window.location.host + "/app/message/" +
|
||||
"ws://" + window.location.host + "/ws/message/" +
|
||||
_userId;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user