change socket event
This commit is contained in:
parent
57b6bf2627
commit
54b6835cb5
1 changed files with 1 additions and 3 deletions
|
|
@ -3,8 +3,6 @@ import { Notify } from "quasar";
|
|||
import { io, Socket } from "socket.io-client";
|
||||
|
||||
import config from "@/app.config";
|
||||
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||
import { getToken } from "@/plugins/auth";
|
||||
interface sockeBackup {
|
||||
message: string;
|
||||
success?: boolean;
|
||||
|
|
@ -23,7 +21,7 @@ export const useSocketStore = defineStore("socket", () => {
|
|||
notifyStatus(body.message, body.success);
|
||||
});
|
||||
|
||||
socket.on("send-notification", (payload) => {
|
||||
socket.on("socket-notification", (payload) => {
|
||||
let body: sockeBackup = JSON.parse(payload);
|
||||
notifyStatus(body.message, body.success);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue