Commit dc27aad2 by lijiabin

【线上优化】 fix: 关于刷新列表优化

parent 024a8751
......@@ -141,10 +141,12 @@ watch(
)
const switchCategory = (category: BooleanFlag) => {
if (activeCategory.value === category) return
// if (activeCategory.value === category) return
activeCategory.value = category
activeConversationId.value = 0
messageDetailList.value = []
// 重新刷新
refreshConversationList()
}
const handleSearchBlur = async () => {
......@@ -229,9 +231,9 @@ const onMessageMenu = async (cmd: string | number, message: MessageDetailListIte
push.success('已删除消息')
}
onActivated(async () => {
onActivated(() => {
applyCategoryFromRoute()
await refreshConversationList()
refreshConversationList()
})
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment