Files
Yi.Framework/Yi.Bbs.Vue3/src/layout/ChatLayout.vue
2024-04-07 16:35:21 +08:00

28 lines
442 B
Vue

<template>
<div class="chat-body" >
<RouterView />
</div>
</template>
<script setup>
import {onMounted, onUnmounted} from "vue";
import {start,close} from "@/hubs/chatHub.js";
onMounted( () => {
start();
});
onUnmounted(()=>{
close();
})
</script>
<style scoped>
.chat-body
{
height: 100%;
/* padding: 5%; */
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
}
</style>