mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
fix #459 。加入【精华】版块
This commit is contained in:
parent
5c6289b4a7
commit
ea801217a0
@ -107,7 +107,8 @@ var config = {
|
||||
tabs: [
|
||||
['share', '分享'],
|
||||
['ask', '问答'],
|
||||
['job', '招聘']
|
||||
['job', '招聘'],
|
||||
['good', '精华'],
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@ -56,7 +56,11 @@ exports.index = function (req, res, next) {
|
||||
// 取主题
|
||||
var query = {};
|
||||
if (tab && tab !== 'all') {
|
||||
query.tab = tab;
|
||||
if (tab === 'good') {
|
||||
query.good = true;
|
||||
} else {
|
||||
query.tab = tab;
|
||||
}
|
||||
}
|
||||
|
||||
var limit = config.list_topic_count;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user