diff --git a/frontend/components/product/ChatBox/ChatInput.vue b/frontend/components/product/ChatBox/ChatInput.vue index d59a17c..cb9a21f 100644 --- a/frontend/components/product/ChatBox/ChatInput.vue +++ b/frontend/components/product/ChatBox/ChatInput.vue @@ -7,6 +7,9 @@ import { useToast } from "~/composables/global/useToast"; // state +const route = useRoute(); +const id = route.params.id as string | number; + const { $queryClient: queryClient } = useNuxtApp(); const { addToast } = useToast(); @@ -27,7 +30,7 @@ const sendMessage = async () => { await createMessage({ new_message: value, - productId: 1, + productId: id, }); } catch (e) { addToast({