提交 fe7db98d 编写于 作者: Q qiang

fix: convertContext

上级 a0fe152b
......@@ -20,7 +20,7 @@ const ContextClasss = {
}
function convertContext (result) {
if (result.context) {
if (result && result.context) {
const { id, name, page } = result.context
const ContextClass = ContextClasss[name]
result.context = ContextClass && new ContextClass(id, page)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册