diff --git a/public/error.html b/public/error.html index 6081aff7..155c50e2 100644 --- a/public/error.html +++ b/public/error.html @@ -66,7 +66,7 @@ IRC Imaging System
- V1.2.0.001 + V1.3.0.001
Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司 版权所有 diff --git a/src/utils/request.js b/src/utils/request.js index 41cffe8c..c6b742fb 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -46,10 +46,13 @@ service.interceptors.request.use( } ) +var isConfirm = true + service.interceptors.response.use( response => { const res = response.data if (res.IsSuccess) { + isConfirm = true return Promise.resolve(res) } else if (res.IsSuccess === false) { if (res.Code !== 5) { @@ -115,7 +118,7 @@ service.interceptors.response.use( }) } } else { - if(message !== ''){ + if(message !== '' && isConfirm){ MessageBox.confirm(message, store.state.lang.language === 'en'? 'Warning' : '警告', { type: 'warning', showCancelButton: false, @@ -124,12 +127,13 @@ service.interceptors.response.use( } } } - if (!window.navigator.onLine) { - MessageBox.confirm(store.state.lang.language === 'en'? 'Please check your network, refresh the page later to try again!' : '请检查您的网络,稍后刷新页面重试!', store.state.lang.language === 'en'? 'Warning' : '警告', { + if (!window.navigator.onLine && isConfirm) { + MessageBox.confirm(store.state.lang.language === 'en'? 'Please check your network,and try again later!' : '请检查网络,稍后重试!', store.state.lang.language === 'en'? 'Warning' : '警告', { type: 'warning', showCancelButton: false, callback: action => {} }) + isConfirm = false } return Promise.reject(new Error(message || 'Error')) } diff --git a/src/views/login/index.vue b/src/views/login/index.vue index a3c7a807..97616a26 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -124,7 +124,7 @@ IRC Imaging System
- V1.2.0.001 + V1.3.0.001
Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司 版权所有
diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue
index d065c2bb..e33fa45f 100644
--- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue
+++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue
@@ -44,7 +44,17 @@
show-overflow-tooltip
>
-