优化代码

This commit is contained in:
java110 2020-09-18 12:34:38 +08:00
parent 9d68d06727
commit 7e48f69ac2
3 changed files with 7 additions and 6 deletions

8
app.js
View File

@ -36,12 +36,12 @@ let opts = {
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
//app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
//app.use('/app',proxy('http://192.168.1.16:8012',opts));
app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
app.use('/app',proxy('http://192.168.1.16:8012',opts));
//app.listen(3000);
app.use(express.json());

View File

@ -3,7 +3,8 @@
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
"start": "node ./bin/www",
"dev": "node ./bin/www"
},
"dependencies": {
"cookie-parser": "~1.4.4",

View File

@ -20,7 +20,7 @@
$that.listEnterCommunity(DEFAULT_PAGE, DEFAULT_ROW);
});
vc.on('chooseEnterCommunity','paginationPlus', 'page_event', function (_currentPage) {
vc.component.listEnterCommunity(_currentPage, DEFAULT_ROWS);
vc.component.listEnterCommunity(_currentPage, DEFAULT_ROW);
});
},
methods:{