From f465b6b129c12006cf358f3a92c7b7f691cbe6ef Mon Sep 17 00:00:00 2001 From: zhangyu Date: Sun, 26 Sep 2021 12:59:02 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1029=20fix:=20topology=20=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=20=E7=9B=B4=E6=8E=A5=E4=BF=9D=E5=AD=98=20?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/ChartDiagram/diagram.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nezha-fronted/src/components/common/ChartDiagram/diagram.vue b/nezha-fronted/src/components/common/ChartDiagram/diagram.vue index 49a5ced7b..25b548a08 100644 --- a/nezha-fronted/src/components/common/ChartDiagram/diagram.vue +++ b/nezha-fronted/src/components/common/ChartDiagram/diagram.vue @@ -339,7 +339,6 @@ import topoTooltip from '../project/L5/topoTooltip' import { getMetricTypeValue } from '../js/tools' import bus from '../../../libs/bus' import CanvasContextMenu from '@/components/common/project/L5/CanvasContextMenu' -import {imageTemp} from "../project/L5/services/canvas"; // 注册到画布 registerNode('rectangleImg2', myShape, myAnchors, myIconRect2, myTextRect2) registerNode('myCube', myCubec, myCubeAnchors, null, null) @@ -1582,9 +1581,9 @@ export default { }) if (group) { group.children.push({ - ...imageTemp, + ...imageTemp2, data: { - ...imageTemp.data, + ...imageTemp2.data, text: res.data.imageName, image: data, imageId: res.data.id, @@ -1595,9 +1594,9 @@ export default { this.tools.push({ group: this.uploadPic.unit, children: [{ - ...imageTemp, + ...imageTemp2, data: { - ...imageTemp.data, + ...imageTemp2.data, text: res.data.imageName, image: data, imageId: res.data.id,