...
|
...
|
@@ -47,6 +47,11 @@ const editor = (req, res, next) => { |
|
|
articleListData.data.list.artList.forEach(articleData => {
|
|
|
build.push(guangProcess.formatArticle(articleData, true, isApp, false, uid));
|
|
|
});
|
|
|
|
|
|
if (!build.length) {
|
|
|
res.set('Cache-Control', 'no-cache');
|
|
|
}
|
|
|
|
|
|
res.render('index/list', Object.assign({
|
|
|
page: 'index-editor',
|
|
|
title: title,
|
...
|
...
|
@@ -144,6 +149,11 @@ const index = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
indexModel.getArticle(param).then(result => {
|
|
|
if (result && result.guang && result.guang.infos) {
|
|
|
if (!result.guang.infos.length) {
|
|
|
res.set('Cache-Control', 'no-cache');
|
|
|
}
|
|
|
}
|
|
|
res.render('guang', Object.assign(responseData, result));
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|