fix: 设备分配代理,虚比例,sim顺序
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m15s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m15s
This commit is contained in:
@@ -534,7 +534,7 @@
|
||||
getSwitchModeName
|
||||
} = useAssetFormatters(deviceRealtimeRef)
|
||||
|
||||
// 排序后的设备卡列表(当前卡排在最前面)
|
||||
// 排序后的设备卡列表(按卡槽位置排序,当前卡排在最前面)
|
||||
const sortedDeviceCards = computed(() => {
|
||||
if (!props.cardInfo?.cards || props.cardInfo.cards.length === 0) {
|
||||
return []
|
||||
@@ -543,7 +543,7 @@
|
||||
return cards.sort((a, b) => {
|
||||
if (a.is_current && !b.is_current) return -1
|
||||
if (!a.is_current && b.is_current) return 1
|
||||
return 0
|
||||
return (a.slot_position ?? 0) - (b.slot_position ?? 0)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user