修改:获取消息内容优化

This commit is contained in:
安浩浩
2024-05-19 15:30:07 +08:00
parent ac66084650
commit 35b97b1ec0
10 changed files with 146 additions and 165 deletions

View File

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { ref, defineAsyncComponent } from 'vue'
import { shallowRef, defineAsyncComponent, DefineComponent } from 'vue'
import NavBar from './NavBar/index.vue'
// 定义异步加载的组件
@ -7,7 +7,7 @@ const ConversationComponent = defineAsyncComponent(
() => import('@/views/im/Conversation/index.vue')
)
const currentComponent = ref(ConversationComponent) // 默认加载对话组件
const currentComponent = shallowRef<DefineComponent | null>(ConversationComponent) // 默认加载对话组件
defineOptions({ name: 'IM' })
</script>