Commit 3f4f9c36 by 展昭

update

parent e22e5bd2
Showing with 1 additions and 3 deletions
...@@ -418,10 +418,9 @@ export default { ...@@ -418,10 +418,9 @@ export default {
}, },
getBarHeight() { getBarHeight() {
try { try {
initJsBridge(() => {
window.WebViewJavascriptBridge.callHandler( window.WebViewJavascriptBridge.callHandler(
"getBarHeight", "getBarHeight",
{}, null,
function(response) { function(response) {
console.log("来自 ios/android的回传数据: ", response); console.log("来自 ios/android的回传数据: ", response);
const barHeight = response; const barHeight = response;
...@@ -441,7 +440,6 @@ export default { ...@@ -441,7 +440,6 @@ export default {
); );
} }
); );
});
} catch (err) { } catch (err) {
console.log("getBarHeight is error"); console.log("getBarHeight is error");
} }
......
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 sign in to comment