提交 dab20ed0 编写于 作者: 雪洛's avatar 雪洛

update: 优化nvue下获取context时填错id报错不准确的问题

上级 3ca39f22
......@@ -57,7 +57,7 @@ function findRefByElm (id, elm) {
if (!id || !elm) {
return
}
if (elm.attr.id === id) {
if (elm.attr && elm.attr.id === id) {
return elm
}
const children = elm.children
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册