Commit 1fee7a3a authored by 郑磊's avatar 郑磊

更新原生接口调用

parent 266fc754
...@@ -66,7 +66,7 @@ function callAndroidApi(name: string, ...args: any[]): boolean { ...@@ -66,7 +66,7 @@ function callAndroidApi(name: string, ...args: any[]): boolean {
if (typeof params !== 'undefined' && params !== null) { if (typeof params !== 'undefined' && params !== null) {
invokeArgs.push(JSON.stringify(params)) invokeArgs.push(JSON.stringify(params))
} }
window.liveapp[name].apply(null, invokeArgs) window.liveapp[name](...invokeArgs)
return true return true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment