feat(socket): add socket.on "socket-notification"

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-05-14 13:35:24 +07:00
parent 01b1ee3998
commit e85ea0c475

View file

@ -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) {