huan-jie před 5 roky
rodič
revize
7e2bacdc95
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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)
         }
     }