เพิ่ม Socket mark-read , notify-message

This commit is contained in:
net 2024-02-16 16:20:18 +07:00 committed by Net
parent 5b081878c4
commit 081c1e0589
6 changed files with 191 additions and 78 deletions

View file

@ -1,5 +1,16 @@
<script setup lang="ts">
import FormChat from "@/modules/00_support/components/FormChat.vue";
import { useSupportStore } from "@/modules/00_support/store/Main.ts";
import { onMounted, onUnmounted, ref } from "vue";
const store = useSupportStore();
onMounted(async () => {
store.socket.connect();
});
onUnmounted(async () => {
store.socket.disconnect();
});
</script>
<template>