fix: แก้การเเสดง ภาษา

This commit is contained in:
Net 2024-04-22 14:19:35 +07:00
parent 2c8e42aaa5
commit 89ad46a710
2 changed files with 26 additions and 10 deletions

View file

@ -1,13 +1,19 @@
<script setup lang="ts">
import AppBox from 'components/app/AppBox.vue';
const props = defineProps<{
branch: {
count: number;
label: string;
}[];
dark?: boolean;
}>();
const props = withDefaults(
defineProps<{
branch: {
count: number;
label: string;
}[];
dark?: boolean;
isBranch?: boolean;
}>(),
{
isBranch: false,
},
);
const color = ['pink', 'purple'];
</script>
@ -34,7 +40,9 @@ const color = ['pink', 'purple'];
<div class="stat__content">
<div class="text-h5 text-weight-bold">{{ v.count }}</div>
<div class="text-weight-bold">{{ v.label }}</div>
<div class="text-weight-bold">
{{ isBranch ? $t(v.label) : v.label }}
</div>
</div>
</AppBox>
</div>