เพิ่ม Socket mark-read , notify-message
This commit is contained in:
parent
5b081878c4
commit
081c1e0589
6 changed files with 191 additions and 78 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue