refactor: rename variable
This commit is contained in:
parent
e7dc511b03
commit
4f6f338139
1 changed files with 4 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ const selected = ref<string>('');
|
|||
|
||||
const expanded = ref<string[]>([]);
|
||||
|
||||
const branchStat = ref<{ amount: number; label: string }[]>([]);
|
||||
const branchStats = ref<{ amount: number; label: string }[]>([]);
|
||||
|
||||
const treeData = ref<BranchWithChildren[]>([]);
|
||||
|
||||
|
|
@ -414,11 +414,11 @@ onMounted(async () => {
|
|||
const result = await branchStore.stats();
|
||||
|
||||
if (result) {
|
||||
branchStat.value.push({
|
||||
branchStats.value.push({
|
||||
amount: result.hq,
|
||||
label: 'branchHQLabel',
|
||||
});
|
||||
branchStat.value.push({
|
||||
branchStats.value.push({
|
||||
amount: result.br,
|
||||
label: 'branchLabel',
|
||||
});
|
||||
|
|
@ -436,7 +436,7 @@ onMounted(async () => {
|
|||
class="q-mb-md"
|
||||
:class="{ 'bg-card-branch-title': $q.dark.isActive }"
|
||||
>
|
||||
<StatCardComponent :branch="branchStat" />
|
||||
<StatCardComponent :branch="branchStats" />
|
||||
</AppBox>
|
||||
|
||||
<AppBox bordered style="width: 100%" v-if="!branchData?.total">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue