fix: zhihu/zhuanlan (#205)

* fix: zhihu/zhuanlan

fix #201

* Update zhuanlan.js
This commit is contained in:
阿卡琳 2018-05-25 22:48:39 +08:00 committed by DIYgod
parent 39fb33e7f5
commit 673d7ecedd
1 changed files with 2 additions and 2 deletions

View File

@ -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}`,