feat(socket): add socket.on "socket-notification"
This commit is contained in:
parent
01b1ee3998
commit
e85ea0c475
1 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ export const useSocketStore = defineStore("socket", () => {
|
|||
notifyStatusOrg("current", body.message, body.success);
|
||||
}
|
||||
});
|
||||
|
||||
socket.on("socket-notification", (payload) => {
|
||||
let body: sockeBackup = JSON.parse(payload);
|
||||
notifyStatus(body.message, body.success);
|
||||
});
|
||||
}
|
||||
|
||||
function notifyStatus(message: string, success?: boolean) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue