diff --git a/mindinsight/ui/src/views/train-manage/operator.vue b/mindinsight/ui/src/views/train-manage/operator.vue index eeb532b19382672d15dba2d2a1af736af635aac0..3dba87074518bd26f52a7dd99eb7c6523f5aa930 100644 --- a/mindinsight/ui/src/views/train-manage/operator.vue +++ b/mindinsight/ui/src/views/train-manage/operator.vue @@ -313,10 +313,19 @@ export default { destroyed() { // Remove the listener of window size change window.removeEventListener('resize', this.resizeCallback); + this.$bus.$off('resize'); }, methods: { init() { this.getCoreTypeList(); + this.$bus.$on('resize', this.resizeEchart); + }, + resizeEchart() { + if (this.coreCharts.chartDom) { + setTimeout(() => { + this.coreCharts.chartDom.resize(); + }, 200); + } }, /** * Current device change diff --git a/mindinsight/ui/src/views/train-manage/scalar.vue b/mindinsight/ui/src/views/train-manage/scalar.vue index 1ed333bdec722af2992a0832a359e1f9aa3215ca..061bc814c508f98357ce28833adf2685ca3e4a86 100644 --- a/mindinsight/ui/src/views/train-manage/scalar.vue +++ b/mindinsight/ui/src/views/train-manage/scalar.vue @@ -91,7 +91,7 @@ limitations under the License.