diff --git a/nezha-fronted/src/components/chart/chart/chartDiagram.vue b/nezha-fronted/src/components/chart/chart/chartDiagram.vue
index 73a79a595..c31a2e5f0 100644
--- a/nezha-fronted/src/components/chart/chart/chartDiagram.vue
+++ b/nezha-fronted/src/components/chart/chart/chartDiagram.vue
@@ -9,7 +9,7 @@
-
+
@@ -37,13 +37,16 @@ export default {
}
}
},
+ created () {
+ this.$get('/topology/icon').then(res => {
+ this.iconArray = [...res.data.list]
+ this.iconArrayLoad = true
+ })
+ },
mounted () {
bus.$on('showMeta2dPreview', (params) => {
this.isPreview = params
})
- this.$get('/topology/icon').then(res => {
- this.iconArray = [...res.data.list]
- })
this.reload()
},
methods: {
diff --git a/nezha-fronted/src/components/common/mixin/beforeMeta2d.js b/nezha-fronted/src/components/common/mixin/beforeMeta2d.js
index 692c87f91..3f2e0069c 100644
--- a/nezha-fronted/src/components/common/mixin/beforeMeta2d.js
+++ b/nezha-fronted/src/components/common/mixin/beforeMeta2d.js
@@ -5,7 +5,8 @@ export default {
querysArray: [],
meta2dType: '',
params: {},
- iconArray: []
+ iconArray: [],
+ iconArrayLoad: false
}
},
watch: {
diff --git a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue
index fb454d10e..1b9501606 100644
--- a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue
+++ b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue
@@ -142,7 +142,7 @@
@@ -392,6 +392,7 @@ export default {
querysArray: [],
meta2dType: '',
iconArray: [],
+ iconArrayLoad: false,
isPreview: {
show: false,
topoData: {},
@@ -546,6 +547,7 @@ export default {
this.init()
this.$get('/topology/icon').then(res => {
this.iconArray = [...res.data.list]
+ this.iconArrayLoad = true
})
},
destroyed () {
diff --git a/nezha-fronted/src/components/page/monitor/project/project.vue b/nezha-fronted/src/components/page/monitor/project/project.vue
index 1d20d865f..06a0e05ca 100644
--- a/nezha-fronted/src/components/page/monitor/project/project.vue
+++ b/nezha-fronted/src/components/page/monitor/project/project.vue
@@ -1,7 +1,7 @@
-
+
{
this.iconArray = [...res.data.list]
+ this.iconArrayLoad = true
})
this.initEvent()
},