2868073639qq
2868073639qq
  • 发布:2023-03-11 17:36
  • 更新:2023-03-11 21:29
  • 阅读:127

在uniapp中使用, 为什么会报错Cannot read property 'theme' of undefined"

分类:uni-app

<view class="context"><joMarkdown :nodes="entry.content | markdownFun(entry.self)" mode="scroll"></joMarkdown></view>

filters:{
markdownFun(content, self) {
if (self) return
return markdownFunc(content, 'markdown');
},
}

报错:
Cannot read property 'theme' of undefined"

cid unmatched at view.umd.min.js:1
17:32:20.815 TypeError: Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method. at view.umd.min.js:1

2023-03-11 17:36 负责人:无 分享
已邀请:
2868073639qq

2868073639qq (作者)

找到答案了,谢谢

要回复问题请先登录注册