From e85ea0c47513bf918fc37a74d3e873d9b0d48c99 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 14 May 2026 13:35:24 +0700 Subject: [PATCH] feat(socket): add socket.on "socket-notification" --- src/stores/socket.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stores/socket.ts b/src/stores/socket.ts index 0d5ea4c64..854a281d5 100644 --- a/src/stores/socket.ts +++ b/src/stores/socket.ts @@ -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) {