From d29bf095358a62cd9db21719b65cbda66ec34531 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 25 Jun 2024 14:48:39 +0200 Subject: [PATCH] remove warnings --- src/components/ui/VnImg.vue | 2 +- src/pages/Account/Card/AccountBasicData.vue | 1 - src/pages/Route/RouteList.vue | 1 - src/pages/Route/RouteRoadmap.vue | 2 +- src/pages/Ticket/Card/TicketSale.vue | 17 ++++++++--------- 5 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/components/ui/VnImg.vue b/src/components/ui/VnImg.vue index a88c02898..37c1edefc 100644 --- a/src/components/ui/VnImg.vue +++ b/src/components/ui/VnImg.vue @@ -32,7 +32,7 @@ const url = computed( () => `/api/${$props.storage}/${$props.collection}/${$props.size}/${$props.id}/download?access_token=${token}&${timeStamp.value}` ); -const reload = (emit = false) => { +const reload = () => { timeStamp.value = `timestamp=${Date.now()}`; }; defineExpose({ diff --git a/src/pages/Account/Card/AccountBasicData.vue b/src/pages/Account/Card/AccountBasicData.vue index 3a9d5c9bf..42b77419f 100644 --- a/src/pages/Account/Card/AccountBasicData.vue +++ b/src/pages/Account/Card/AccountBasicData.vue @@ -3,7 +3,6 @@ import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; import VnSelect from 'src/components/common/VnSelect.vue'; import FormModel from 'components/FormModel.vue'; -import VnRow from 'components/ui/VnRow.vue'; import VnInput from 'src/components/common/VnInput.vue'; import { ref, watch } from 'vue'; diff --git a/src/pages/Route/RouteList.vue b/src/pages/Route/RouteList.vue index edec43fec..de60d164e 100644 --- a/src/pages/Route/RouteList.vue +++ b/src/pages/Route/RouteList.vue @@ -1,5 +1,4 @@ diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index 7cc8539cf..9fdbd4738 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -353,15 +353,14 @@ const newOrderFromTicket = async () => { }; const goToLog = (saleId) => { - //TODO: Redireccionar cuando exista la vista TicketLog - // router.push({ - // name: 'TicketLog', - // params: { - // originId: route.params.id, - // changedModel: 'Sale', - // changedModelId: saleId, - // }, - // }); + router.push({ + name: 'TicketLog', + params: { + originId: route.params.id, + changedModel: 'Sale', + changedModelId: saleId, + }, + }); }; const changeTicketState = async (val) => {