feat: removed unnecessary url functions
This commit is contained in:
parent
8cf276deb0
commit
5a40c8febf
|
|
@ -88,7 +88,6 @@ const handleSend = async () => {
|
|||
|
||||
// Block to handle sending the url to n8n
|
||||
const route = useRoute()
|
||||
const sendUlr = chatbotService.sendUrl;
|
||||
const sendPageContext = chatbotService.sendPageContext;
|
||||
// Capture and send page context to n8n
|
||||
const currentContext = computed(() =>
|
||||
|
|
@ -104,7 +103,6 @@ watch(currentContext, async (ctx) => {
|
|||
features: ctx.features,
|
||||
path: ctx.path
|
||||
}
|
||||
await sendUlr(route.fullPath)
|
||||
await sendPageContext(contextPayload)
|
||||
},
|
||||
{ immediate: true }
|
||||
|
|
|
|||
|
|
@ -9,11 +9,6 @@ export const chatbotService = {
|
|||
return response.data as Message;
|
||||
},
|
||||
|
||||
sendUrl: async (url: string): Promise<string> => {
|
||||
const response = await api.post("/chat/page-url", { url });
|
||||
return response.data;
|
||||
},
|
||||
|
||||
sendPageContext: async (context: contextObject): Promise<string> => {
|
||||
const response = await api.post("/chat/context", context);
|
||||
return response.data;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user