mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化代码
This commit is contained in:
parent
b3b51a1cfa
commit
b7d9125215
8
app.js
8
app.js
@ -32,16 +32,16 @@ let opts = {
|
||||
}
|
||||
|
||||
|
||||
app.use('/callComponent', proxy('http://192.168.100.108:8008', opts));
|
||||
app.use('/app', proxy('http://192.168.100.108:8008', opts));
|
||||
// app.use('/callComponent', proxy('http://192.168.100.108:8008', opts));
|
||||
// app.use('/app', proxy('http://192.168.100.108:8008', opts));
|
||||
app.use('/ws', createProxyMiddleware({
|
||||
target: 'http://192.168.100.108:8008',
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
}));
|
||||
|
||||
// app.use('/callComponent', proxy('http://127.0.0.1:8008', opts));
|
||||
// app.use('/app', proxy('http://127.0.0.1:8008', opts));
|
||||
app.use('/callComponent', proxy('http://127.0.0.1:8008', opts));
|
||||
app.use('/app', proxy('http://127.0.0.1:8008', opts));
|
||||
// app.use('/ws',proxy('http://127.0.0.1:8008',opts));
|
||||
// app.use('/callComponent',proxy('http://192.168.1.106:8012',opts));
|
||||
// app.use('/app',proxy('http://192.168.1.106:8012',opts));
|
||||
|
||||
@ -117,7 +117,7 @@
|
||||
vc.toast(vc.validate.errInfo);
|
||||
return;
|
||||
}
|
||||
vc.http.post('editCommunity', 'update', JSON.stringify(vc.component.editCommunityAreaInfo), {
|
||||
vc.http.apiPost('/community.updateCommunity', JSON.stringify(vc.component.editCommunityAreaInfo), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function (json, res) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user