url in results
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
2024-01-04 20:05:30 +01:00
parent 33219a4d88
commit a2caa6f847

View File

@@ -161,7 +161,7 @@ const async_search = async (item) => {
console.log('SEARCH', item, form.country.code, route('products.search', [item, form.country.code]));
const response = await axios.get(route('products.search', [item, form.country.code]));
options_items.value = response.data.map((i) => { return { "item": i.name, "desc": i.typeName, "img": i.mainImageUrl, "code": i.code } });
options_items.value = response.data.map((i) => { return { "item": i.name, "desc": i.typeName, "img": i.mainImageUrl, "code": i.code, "url": i.url } });
console.log("VALUES=", options_items.value);
}
} catch (e) {
@@ -276,7 +276,11 @@ const submit = () => {
<span class="font-extrabold font-mono">Vysledky vyhladavania</span>
</div>
<div>
<EasyTable :rows-per-page=15 :headers="hproducts" :items="tproducts" alternating></EasyTable>
<EasyTable :rows-per-page=15 :headers="hproducts" :items="tproducts" alternating>
<template #item-name="{ name, url }">
<a target="_blank" :href="url">{{ name }}</a>
</template>
</EasyTable>
</div>
</div>
</div>