刷新方法修改

This commit is contained in:
na.guo
2020-08-07 12:25:46 +08:00
parent 388c9269ce
commit e488edcbd8
2 changed files with 7 additions and 7 deletions

View File

@@ -15,11 +15,5 @@ export default {
]
})
}
},
refreshCallBack(data) {
console.log(data, 'data')
if (data.trigger == 'right_button_click') {
location.reload()
}
}
}

View File

@@ -208,6 +208,12 @@ export default {
}
})
.catch(err => {})
},
refreshCallBack(data) {
console.log(data, 'data')
if (data.trigger == 'right_button_click') {
location.reload()
}
}
},
created() {
@@ -215,7 +221,7 @@ export default {
if (process.env.NODE_ENV != 'development') {
refresh.refreshImg()
window.appCallBack=refresh.refreshCallBack(data)
window.appCallBack=this.refreshCallBack
// setTimeout(() => {
// // eslint-disable-next-line no-undef
// EWebBridge.webCallAppInJs('webview_right_button', {