diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index dbe90f0..0999461 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -4,13 +4,7 @@ {{ listaStore.pb.authStore.model.name }} - - {{ - $router.currentRoute.value.path == "/" - ? "Listas" - : $router.currentRoute.value.path == "/perfil" - ? "Perfil" - : lista.nombre - }} + {{ lista }}
@@ -26,18 +20,29 @@ diff --git a/src/pages/listas/indexPage.vue b/src/pages/listas/indexPage.vue index 97f7515..f6fb2a8 100644 --- a/src/pages/listas/indexPage.vue +++ b/src/pages/listas/indexPage.vue @@ -9,12 +9,15 @@ />
-
-

- {{ lista?.nombre }} -

+
+
@@ -37,14 +40,13 @@ const $router = useRouter(); const lista = ref(null); const items = ref(null); +const producto = ref(""); onMounted(async () => { - console.log($router.currentRoute.value.params.id); lista.value = await listaStore.pb .collection("lista") .getOne($router.currentRoute.value.params.id); const arrayIdItem = lista.value.items; - console.log(arrayIdItem); items.value = await listaStore.pb.collection("items").getFullList(); items.value = items.value.filter( (element) => arrayIdItem.indexOf(element.id) != -1