From 80b1c9fc59222494be97c2ad7e98fc81a58f15dd Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 12 Apr 2026 19:12:57 +1000 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B0=D1=80=D1=81=D0=B5=D1=80=20=D0=B2?= =?UTF-8?q?=D1=81=D0=B5=D1=85=20=D0=B8=D1=81=D1=82=D0=BE=D1=87=D0=BD=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=B2=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD,=20=D0=B1=D0=B5=D0=B7=20=D0=B0=D0=B4=D0=B0=D0=BF=D1=82?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8=20=D1=84=D1=80=D0=BE=D0=BD=D1=82=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Istochnik.vue | 4 +- src/components/Istochnik_one_kard.vue | 56 ++++++++++++++------------- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/src/components/Istochnik.vue b/src/components/Istochnik.vue index 8142887..3d94e90 100644 --- a/src/components/Istochnik.vue +++ b/src/components/Istochnik.vue @@ -45,7 +45,7 @@ @@ -73,7 +73,7 @@ -
+
- - - - + + + + + @@ -36,8 +37,8 @@ const props = defineProps({ source: { type: Object, required: true, - default: () => ({ url: "", promt: "" }) - } + default: () => ({ url: "", promt: "" }), + }, }); const emit = defineEmits(["sourceStarted"]); @@ -48,14 +49,14 @@ const displayUrl = computed({ get: () => props.source.url || "", set: (val) => { // Только для чтения - } + }, }); const displayPromt = computed({ get: () => props.source.promt || "", set: (val) => { // Только для чтения - } + }, }); const startParsing = async () => { @@ -65,13 +66,14 @@ const startParsing = async () => { } isLoading.value = true; - + try { - await axios.post("https://allowlgroup.ru/api/parser_all", { + // await axios.post("https://allowlgroup.ru/api/8001/parser_all", { + await axios.post("http://127.0.0.1:8001/parser_all", { url: props.source.url, - promt: props.source.promt + promt: props.source.promt, }); - + emit("sourceStarted", props.source.url); alert(`Парсинг для ${props.source.url} запущен`); } catch (err) { @@ -81,4 +83,4 @@ const startParsing = async () => { isLoading.value = false; } }; - \ No newline at end of file +