提交 76df458d 编写于 作者: Q qiang

fix: 正式环境去除部分警告

上级 2ae00897
......@@ -68,7 +68,10 @@ const handleVdData = {
nid = String(nid)
const target = vd.elements.find(target => target.cid === cid && target.nid === nid)
if (!target) {
return console.error(`event handler[${cid}][${nid}] not found`)
if (process.env.NODE_ENV !== 'production') {
console.error(`event handler[${cid}][${nid}] not found`)
}
return
}
const type = event.type
const mpEvent = wrapperEvent(event)
......@@ -246,4 +249,4 @@ export class VDomSync {
this.elements.length = 0
removeVdSync(this.pageId)
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册