feat: refactor for path support

This commit is contained in:
Methapon2001 2024-07-08 14:08:57 +07:00
parent 4d8e22d64e
commit e631ed9c47
8 changed files with 44 additions and 23 deletions

View file

@ -259,13 +259,20 @@ onMounted(async () => {
: 'Jobs Worker Service'
}}
</span>
<span class="text-caption">
{{
utilsStore.currentTitle?.caption
? $t(utilsStore.currentTitle?.caption)
: ''
}}
</span>
<div class="flex items-center" style="gap: var(--size-1)">
<template v-for="(item, i) in utilsStore.currentTitle.path">
<span
class="text-caption cursor-pointer"
@click="item.handler?.()"
>
{{ item.text ? $t(item.text) : '' }}
</span>
<q-icon
name="mdi-chevron-right"
v-if="i + 1 !== utilsStore.currentTitle.path.length"
/>
</template>
</div>
</div>
<div class="row q-gutter-x-md items-center" style="margin-left: auto">