mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 19:36:44 +08:00
刷新方法测试
This commit is contained in:
22
src/assets/js/utils/refresh.js
Normal file
22
src/assets/js/utils/refresh.js
Normal 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user