mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2026-05-20 14:17:48 +00:00
msgQueryPartitionService在没数据情况下才查
This commit is contained in:
@@ -182,13 +182,15 @@ onMounted(async () => {
|
||||
handleSelectedSession(router.currentRoute.value.query.sessionId)
|
||||
}
|
||||
|
||||
msgQueryPartitionService().then((res) => {
|
||||
const partitions = {}
|
||||
res.data.data.forEach((item) => {
|
||||
partitions[item.partitionId] = item
|
||||
if (Object.keys(messageData.partitions).length === 0) {
|
||||
msgQueryPartitionService().then((res) => {
|
||||
const partitions = {}
|
||||
res.data.data.forEach((item) => {
|
||||
partitions[item.partitionId] = item
|
||||
})
|
||||
messageData.setPartitions(partitions)
|
||||
})
|
||||
messageData.setPartitions(partitions)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
const handleMsgListWheel = async () => {
|
||||
|
||||
Reference in New Issue
Block a user