fix: 修复linkMonitor下一跳网格图排序错乱问题

This commit is contained in:
刘洪洪
2023-02-27 16:14:59 +08:00
parent 35b1f31601
commit a55ab9fb15

View File

@@ -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