Commit 937cc188 by amateur

修改原生接口调用错误逻辑

1 parent ca916c58
......@@ -59,7 +59,7 @@ class Interface {
}
__callNativeApi(nativeMethod, data) {
if (window.$NativeApi || $NativeApi[nativeMethod]) {
if (window.$NativeApi && window.$NativeApi[nativeMethod]) {
window.$NativeApi[nativeMethod](JSON.stringify(data))
} else {
return true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!