fix: 修复linkMonitor下一跳网格图排序错乱问题
This commit is contained in:
@@ -146,9 +146,9 @@ export default {
|
|||||||
// 接口数据乱序,根据出方向排序,再根据同个出方向下的入进行排序
|
// 接口数据乱序,根据出方向排序,再根据同个出方向下的入进行排序
|
||||||
nextLinkData.sort((a, b) => {
|
nextLinkData.sort((a, b) => {
|
||||||
if (a.ingressLinkDirection !== b.ingressLinkDirection) {
|
if (a.ingressLinkDirection !== b.ingressLinkDirection) {
|
||||||
return a.ingressLinkDirection.localeCompare(b.ingressLinkDirection)
|
return a.ingressLinkDirection.localeCompare(b.ingressLinkDirection, 'zh')
|
||||||
}
|
}
|
||||||
return a.egressLinkDirection.localeCompare(b.egressLinkDirection)
|
return a.egressLinkDirection.localeCompare(b.egressLinkDirection, 'zh')
|
||||||
})
|
})
|
||||||
|
|
||||||
this.isNextNoData = nextLinkData.length === 0
|
this.isNextNoData = nextLinkData.length === 0
|
||||||
|
|||||||
Reference in New Issue
Block a user