fix:修改 chartDiagram

This commit is contained in:
zhangyu
2023-06-09 10:36:48 +08:00
parent 7f9d2f12a0
commit ba33fa124e
9 changed files with 132 additions and 24 deletions

View File

@@ -18,8 +18,7 @@ export default {
},
methods: {
reload () {
console.log(123213)
if (this.currentProject.id) {
if (this.currentProject && this.currentProject.id) {
this.$get('monitor/project/topo', { projectId: this.currentProject.id }).then(res => {
if (res.data && res.data.topo) {
this.topoData = res.data.topo || {}