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