diff --git a/src/components/ui/VnImg.vue b/src/components/ui/VnImg.vue index fb468dc1..7c8addc3 100644 --- a/src/components/ui/VnImg.vue +++ b/src/components/ui/VnImg.vue @@ -67,6 +67,10 @@ const url = computed(() => { return `${props.baseURL ?? app.imageUrl}/${props.storage}/${props.size}/${props.id}`; }); +const zoomUrl = computed(() => { + return `${props.baseURL ?? app.imageUrl}/${props.storage}/${props.zoomSize}/${props.id}`; +}); + const rounded = computed(() => { const roundedMap = { none: '', @@ -114,7 +118,7 @@ const rounded = computed(() => {
@@ -753,11 +754,11 @@ const getSubcategories = async () => { const showItem = async item => { if (checkGuest()) return; + showItemDialog.value = true; const itemLots = await calcItem(item.id); const tags = await getItemTags(item.id); item.lots = itemLots; item.tags = tags; - showItemDialog.value = true; selectedItem.value = item; }; @@ -848,6 +849,7 @@ const onAddLotClick = async lot => { }; const resetAmounts = () => { + selectedItem.value = null; addedItemsAmountAcc.value = {}; amount.value = 0; };