refactor: optimize performance of data fetching in the dashboard component
This commit is contained in:
parent
8dd3268738
commit
f62463dc80
1 changed files with 260 additions and 269 deletions
|
|
@ -83,7 +83,6 @@ onMounted(async () => {
|
|||
});
|
||||
</script>
|
||||
<template>
|
||||
<div>
|
||||
<q-btn
|
||||
rounded
|
||||
dense
|
||||
|
|
@ -182,10 +181,7 @@ onMounted(async () => {
|
|||
style="overflow: hidden"
|
||||
>
|
||||
<div class="column col-12 items-center">
|
||||
<div
|
||||
class="full-width row justify-center"
|
||||
style="position: relative"
|
||||
>
|
||||
<div class="full-width row justify-center" style="position: relative">
|
||||
<div
|
||||
class="full-width account-cover"
|
||||
:class="{ dark: $q.dark.isActive }"
|
||||
|
|
@ -224,11 +220,7 @@ onMounted(async () => {
|
|||
:ratio="1"
|
||||
:src="`/no-img-${gender === 'female' ? 'female' : 'man'}.png`"
|
||||
></q-img>
|
||||
<q-icon
|
||||
v-else
|
||||
name="mdi-account-outline"
|
||||
color="white"
|
||||
/>
|
||||
<q-icon v-else name="mdi-account-outline" color="white" />
|
||||
</div>
|
||||
</template>
|
||||
</q-img>
|
||||
|
|
@ -368,7 +360,6 @@ onMounted(async () => {
|
|||
</div>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
</div>
|
||||
</template>
|
||||
<style scoped lang="scss">
|
||||
.account-menu-down {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue