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

This commit is contained in:
刘洪洪
2023-02-23 10:23:24 +08:00
parent 5ccb91ac24
commit c2f318391b

View File

@@ -146,9 +146,9 @@ export default {
// 接口数据乱序,根据出方向排序,再根据同个出方向下的入进行排序
nextLinkData.sort((a, b) => {
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