diff --git a/mindinsight/ui/src/services/fetcher.js b/mindinsight/ui/src/services/fetcher.js index 69bdc1ca389b117e9b7b47a5a370971b2478b112..370f2bc92b6c8a18d697b10772cb4aaa6ae19e07 100644 --- a/mindinsight/ui/src/services/fetcher.js +++ b/mindinsight/ui/src/services/fetcher.js @@ -50,8 +50,7 @@ axios.interceptors.response.use( // error returned by backend if (error.response && error.response.data && error.response.data.error_code) { - if (error.response.data.error_code.toString() === '50545005' || - error.response.data.error_code.toString() === '50545006') { + if (error.response.data.error_code.toString() === '50545005') { if (error.config.headers.ignoreError || router.currentRoute.path === '/train-manage/training-dashboard') { return Promise.reject(error); @@ -59,6 +58,9 @@ axios.interceptors.response.use( } else if ( error.response.data.error_code.toString() === '50542216' && router.currentRoute.path === '/train-manage/training-dashboard') { return Promise.reject(error); + } else if ( router.currentRoute.path === '/profiling/profiling-dashboard' && + error.config.headers.ignoreError ) { + return Promise.reject(error); } if (errorData[error.response.data.error_code]) { Vue.prototype.$message.error(errorData[error.response.data.error_code]); @@ -84,6 +86,5 @@ axios.interceptors.response.use( return Promise.reject(error); } } - store.commit('setIsReload', false); }, ); diff --git a/mindinsight/ui/src/views/train-manage/profiling-dashboard.vue b/mindinsight/ui/src/views/train-manage/profiling-dashboard.vue index 4f0c23938dff8189e7ba2da860d0df1844558221..7a2ffa54840ac246c4201cac5a6cc5063d9d832e 100644 --- a/mindinsight/ui/src/views/train-manage/profiling-dashboard.vue +++ b/mindinsight/ui/src/views/train-manage/profiling-dashboard.vue @@ -923,7 +923,7 @@ export default { this.timeLine.waiting = true; RequestService.queryTimeline(params) .then((res) => { - if (res && res.data) { + if (res && res.data && res.data.length) { this.timeLine.data = this.stringToUint8Array( JSON.stringify(res.data), );