修改:获取消息内容优化
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user