From 673d7ecedda7661a8cb571b141e44069f1bd9bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E5=8D=A1=E7=90=B3?= Date: Fri, 25 May 2018 22:48:39 +0800 Subject: [PATCH] fix: zhihu/zhuanlan (#205) * fix: zhihu/zhuanlan fix #201 * Update zhuanlan.js --- routes/zhihu/zhuanlan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/zhihu/zhuanlan.js b/routes/zhihu/zhuanlan.js index 4e0027efae..11f747f051 100644 --- a/routes/zhihu/zhuanlan.js +++ b/routes/zhihu/zhuanlan.js @@ -21,8 +21,8 @@ module.exports = async (ctx) => { }, }); - const list = listRes.data; - const info = infoRes.data; + const list = listRes.data || []; + const info = infoRes.data || {}; ctx.state.data = { title: `知乎专栏-${info.name}`,