huan-jie hace 5 años
padre
commit
7e2bacdc95
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      plugins/bridge.js

+ 2 - 2
plugins/bridge.js

@@ -134,12 +134,12 @@ const factory = function() {
 
         if (this.isAndroid) {
             if (typeof this.root[fn] === 'function') {
-                return payload ? this.root[fn](payload) : this.root[fn]()
+                return data ? this.root[fn](data) : this.root[fn]()
             } else {
                 return null
             }
         } else {
-            return this.root(fn, payload)
+            return this.root(fn, data)
         }
     }