Fix id problem

This commit is contained in:
marzban-dev
2025-03-27 22:21:02 +03:30
parent f9a4034764
commit ffe26cde12
@@ -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({