提交 49e24817 编写于 作者: d-u-a's avatar d-u-a

update: 优化 getSubNVueById 错误提示

上级 07850d8b
......@@ -62,7 +62,10 @@ function wrapper (webview) {
}
export function getSubNVueById (id) {
const webview = plus.webview.getWebviewById(id)
const webview = plus.webview.getWebviewById(id)
if (webview === null || webview === undefined) {
throw new Error('Unable to find SubNVue, id=' + id)
}
if (webview && !webview.$processed) {
wrapper(webview)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册