fix: 适配演示,修改链路网格图逻辑

This commit is contained in:
chenjinsong
2023-11-01 18:00:28 +08:00
parent 0152c46d05
commit a121857093

View File

@@ -188,9 +188,9 @@ export default {
// 链路下一跳数据 // 链路下一跳数据
let nextGridData = [] let nextGridData = []
const nextGridTemplate = [ const nextGridTemplate = [
{ linkId: 'Hundredgige2', nextHop: '太原', out: [] }, { linkId: 'Hundredgige2', nextHop: 'City2', out: [] },
{ linkId: 'Hundredgige1', nextHop: '西安', out: [] }, { linkId: 'Hundredgige1', nextHop: 'City1', out: [] },
{ linkId: 'Hundredgige4', nextHop: '西宁', out: [] } { linkId: 'Hundredgige4', nextHop: 'City3', out: [] }
] ]
nextGridData = JSON.parse(JSON.stringify(nextGridTemplate)) nextGridData = JSON.parse(JSON.stringify(nextGridTemplate))
nextGridData.forEach(link => { nextGridData.forEach(link => {