huan-jie il y a 5 ans
Parent
commit
7e2bacdc95
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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)
         }
     }