Authored by 周少峰

head cache

@@ -266,7 +266,7 @@ async function requestHeaderData(type) { @@ -266,7 +266,7 @@ async function requestHeaderData(type) {
266 266
267 resData = template(resData); 267 resData = template(resData);
268 268
269 - if (res[0] && res[0].data && res[1] && res[1].data) { 269 + if (!_.isEmpty(res[0].data) && !_.isEmpty(res[1].data)) {
270 cacheHeaderHtml[type] = resData; 270 cacheHeaderHtml[type] = resData;
271 } 271 }
272 } else { 272 } else {
@@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
56 "urlencode": "^1.1.0", 56 "urlencode": "^1.1.0",
57 "uuid": "^2.0.2", 57 "uuid": "^2.0.2",
58 "yoho-express-session": "^2.0.0", 58 "yoho-express-session": "^2.0.0",
59 - "yoho-node-lib": "=0.5.16", 59 + "yoho-node-lib": "^0.5.12",
60 "yoho-zookeeper": "^1.0.8" 60 "yoho-zookeeper": "^1.0.8"
61 }, 61 },
62 "devDependencies": { 62 "devDependencies": {