diff --git a/src/assets/js/utils/refresh.js b/src/assets/js/utils/refresh.js index d4dd018e9..1665ab650 100644 --- a/src/assets/js/utils/refresh.js +++ b/src/assets/js/utils/refresh.js @@ -15,11 +15,5 @@ export default { ] }) } - }, - refreshCallBack(data) { - console.log(data, 'data') - if (data.trigger == 'right_button_click') { - location.reload() - } } } diff --git a/src/views/ebiz/institutionalPerform/InstitutionalManpower/index.vue b/src/views/ebiz/institutionalPerform/InstitutionalManpower/index.vue index ab03cc4dc..11d688b78 100644 --- a/src/views/ebiz/institutionalPerform/InstitutionalManpower/index.vue +++ b/src/views/ebiz/institutionalPerform/InstitutionalManpower/index.vue @@ -208,14 +208,20 @@ export default { } }) .catch(err => {}) + }, + refreshCallBack(data) { + console.log(data, 'data') + if (data.trigger == 'right_button_click') { + location.reload() } + } }, created() { refresh.refreshImg() 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', {