Skip to content

Commit 5be056e

Browse files
committed
首页不出现招聘
1 parent c599007 commit 5be056e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

controllers/site.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ exports.index = function (req, res, next) {
2828

2929
// 取主题
3030
var query = {};
31-
if (tab && tab !== 'all') {
31+
if (!tab || tab === 'all') {
32+
query.tab = {$ne: 'job'}
33+
} else {
3234
if (tab === 'good') {
3335
query.good = true;
3436
} else {

0 commit comments

Comments
 (0)