Browse Source

fix SSE when using switch account

Olivier Massot 2 năm trước cách đây
mục cha
commit
1b3519439c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plugins/sse.client.ts

+ 1 - 1
plugins/sse.client.ts

@@ -29,7 +29,7 @@ export default defineNuxtPlugin(nuxtApp => {
 
     const sseSource = new SseSource(
         runtimeConfig.public.baseUrlMercure,
-        "access/" + accessProfile.id,
+        "access/" + accessProfile.currentAccessId,
         onOpen,
         onMessage,
         onClose,