Преглед изворни кода

fix: Fix authStore initialization order in OrderChat

unknown пре 2 месеци
родитељ
комит
6c5f804d7b
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/components/OrderChat.vue

+ 2 - 1
src/components/OrderChat.vue

@@ -119,6 +119,8 @@ import { toast } from "vue-sonner";
 
 import { getWsUrl } from "@/lib/utils";
 
+const authStore = useAuthStore();
+
 const props = defineProps<{
   orderId: number;
   compact?: boolean;
@@ -201,7 +203,6 @@ function startCooldown() {
     }
   }, 1000);
 }
-const authStore = useAuthStore();