feat: 上线聊天室功能模块

This commit is contained in:
橙子
2024-04-07 16:35:21 +08:00
parent 6aedff75f1
commit 1087b0965d
14 changed files with 340 additions and 72 deletions

View File

@@ -5,12 +5,14 @@
</div>
</template>
<script setup>
import {onMounted} from "vue";
import chatHub from "@/hubs/chatHub.js";
onMounted(async () => {
chatHub();
import {onMounted, onUnmounted} from "vue";
import {start,close} from "@/hubs/chatHub.js";
onMounted( () => {
start();
});
onUnmounted(()=>{
close();
})
</script>
<style scoped>
.chat-body