刷新方法测试

This commit is contained in:
na.guo
2020-08-07 11:21:25 +08:00
parent 52f563bd0c
commit df5ded59c8
3 changed files with 43 additions and 20 deletions

View File

@@ -0,0 +1,22 @@
export default {
refreshImg() {
if (window.WebViewJavascriptBridge) {
EWebBridge.webCallAppInJs('webview_right_button', {
btns: [
{
img: 'images/refresh.png',
route: {
flag: '',
extra: {}
}
}
]
})
}
},
refreshCallBack(data) {
if (data.trigger == 'right_button_click') {
location.reload()
}
}
}