fix some bugs

This commit is contained in:
2026-06-23 22:31:07 +03:30
parent 4e7d6bca00
commit 71764f7e9a
68 changed files with 1941 additions and 1288 deletions
@@ -19,6 +19,7 @@
<script setup lang="ts">
import type { Giftcardcode } from '@/model/giftCard'
import MobileCard from '@/components/mobile/MobileCard.vue'
import { metalLabel } from '@/utils/adminMetalLabels'
const props = defineProps<{
item: Giftcardcode
@@ -50,7 +51,7 @@ const statusClass = computed(() => {
}
})
const unitLabel = computed(() => (props.item.unit === 2 ? 'طلایی' : 'ریالی'))
const unitLabel = computed(() => (props.item.unit === 2 ? metalLabel.goldWalletShort() : 'ریالی'))
const unitTagClass = computed(() =>
props.item.unit === 2
? 'border-amber-300 bg-amber-50 text-amber-700'