From 4a9bfb045553f2a973b5075f8594f7717a0723bd Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Wed, 10 Aug 2022 23:14:54 +0800 Subject: [PATCH] =?UTF-8?q?spring=20boot=20bug=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 8 ++++---- public/pages/property/room/room.js | 10 ++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app.js b/app.js index e3d468ec7..9ff513fc8 100755 --- a/app.js +++ b/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:8088', opts)); +app.use('/app', proxy('http://192.168.100.108:8088', 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)); diff --git a/public/pages/property/room/room.js b/public/pages/property/room/room.js index 6290e39cf..33cb4fab8 100755 --- a/public/pages/property/room/room.js +++ b/public/pages/property/room/room.js @@ -140,9 +140,8 @@ communityId: vc.getCurrentCommunity().communityId, } } - vc.http.get( - 'room', - 'loadUnits', + vc.http.apiGet( + '/unit.queryUnits', param, function (json, res) { //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); @@ -184,9 +183,8 @@ floorId: _floorId } } - vc.http.get( - 'room', - 'loadFloor', + vc.http.apiGet( + '/floor.queryFloors', param, function (json, res) { let _json = JSON.parse(json);