优化代码

This commit is contained in:
wuxw 2024-05-22 23:26:17 +08:00
parent bb6d44f360
commit 73d9355789
2 changed files with 12 additions and 12 deletions

20
app.js
View File

@ -40,20 +40,20 @@ let opts = {
} }
// todo 测试环境 测试使用生产环境请用nginx带来 // todo 测试环境 测试使用生产环境请用nginx带来
app.use('/callComponent', proxy('http://192.168.100.108:8088', 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('/app', proxy('http://192.168.100.108:8088', opts));
app.use('/ws', createProxyMiddleware({ // app.use('/ws', createProxyMiddleware({
target: 'http://192.168.100.108:8008', // target: 'http://192.168.100.108:8008',
changeOrigin: true, // changeOrigin: true,
ws: true // ws: true
})); // }));
// todo 本机 开发用生产环境请用nginx带来 // todo 本机 开发用生产环境请用nginx带来
// app.use('/ws', proxy('http://127.0.0.1:8008', opts)); app.use('/ws', proxy('http://127.0.0.1:8008', opts));
// app.use('/callComponent', 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('/app', proxy('http://127.0.0.1:8008', opts));
//app.listen(3000); //app.listen(3000);
app.use(express.json()); app.use(express.json());

View File

@ -18,7 +18,7 @@
startTime: '', startTime: '',
roomType: '', roomType: '',
feeFlag: '', feeFlag: '',
endTime: '', endTime: '2050-01-01',
computingFormula: '', computingFormula: '',
amount: '', amount: '',
rateCycle: '', rateCycle: '',
@ -184,7 +184,7 @@
locationTypeCdName: '', locationTypeCdName: '',
startTime: '', startTime: '',
feeFlag: '', feeFlag: '',
endTime: '', endTime: '2050-01-01',
computingFormula: '', computingFormula: '',
amount: '', amount: '',
rateCycle: '', rateCycle: '',