fix bug#3948 发起群聊返回后,清楚之前的数据

This commit is contained in:
wwt 2025-03-17 18:45:20 +08:00
parent a9febca5e5
commit 92cda98ca9

View File

@ -187,7 +187,7 @@ import groupMemberList from '../chatSettings/components/groupMembersList.vue'
import avatarModule from '@/components/avatar-module/index.vue' import avatarModule from '@/components/avatar-module/index.vue'
import { ref, watch, computed, onMounted } from 'vue' import { ref, watch, computed, onMounted } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app' import { onShow, onLoad, onUnload } from '@dcloudio/uni-app'
import { useChatList } from '@/store/chatList/index.js' import { useChatList } from '@/store/chatList/index.js'
import { useAuth } from '@/store/auth' import { useAuth } from '@/store/auth'
import { useTalkStore, useUserStore, useGroupStore } from '@/store' import { useTalkStore, useUserStore, useGroupStore } from '@/store'
@ -214,10 +214,14 @@ const { userInfo } = useAuth()
const groupChatType = ref('') const groupChatType = ref('')
const depsNoExpanded = ref(true) const depsNoExpanded = ref(true)
onLoad(()=> { onLoad(()=> {
groupStore.$reset() groupStore.$reset()
}) })
onUnload(()=> {
groupName.value = '';
groupActiveIndex.value = -1;
})
onMounted(() => { onMounted(() => {
handleSetWebviewStyle() handleSetWebviewStyle()
}) })