Files
Yi.Admin/Yi.Bbs.Vue3/src/layout/ChatLayout.vue

29 lines
443 B
Vue
Raw Normal View History

2024-04-02 18:41:41 +08:00
<template>
<div class="chat-body" >
<RouterView />
</div>
</template>
2024-04-04 19:28:18 +08:00
<script setup>
2024-04-07 16:35:21 +08:00
import {onMounted, onUnmounted} from "vue";
import {start,close} from "@/hubs/chatHub.js";
onMounted( () => {
start();
2024-04-04 19:28:18 +08:00
});
2024-04-07 16:35:21 +08:00
onUnmounted(()=>{
close();
})
2024-04-04 19:28:18 +08:00
</script>
2024-04-02 18:41:41 +08:00
<style scoped>
.chat-body
{
height: 100%;
2025-08-04 23:29:25 +08:00
2024-04-02 18:41:41 +08:00
/* padding: 5%; */
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
}
2024-04-04 19:28:18 +08:00
</style>