fix(mini): sync cached tab bars with the visible page

This commit is contained in:
stu2not
2026-09-15 11:42:38 +08:00
parent fce6cd1cc1
commit 5a2349bb6d
6 changed files with 35 additions and 6 deletions
+2
View File
@@ -1,5 +1,6 @@
import { getParticipantArtwork } from '@/utils/artwork'
import { getPageStyle } from '@/utils/page-style'
import { setActiveTabRoute } from '@/utils/tab-bar'
import { View, Text, ScrollView, Image } from '@tarojs/components'
import { useState } from 'react'
import Taro, { useDidShow } from '@tarojs/taro'
@@ -15,6 +16,7 @@ export default function Chat() {
const [isGuest, setIsGuest] = useState(false)
useDidShow(() => {
setActiveTabRoute('pages/chat/index')
void loadConversations()
})