refactor: add Path go back
This commit is contained in:
parent
1f4129a1b9
commit
577206dfc1
1 changed files with 16 additions and 2 deletions
|
|
@ -112,9 +112,23 @@ onMounted(getCabinet)
|
|||
label="ตู้เอกสารทั้งหมด"
|
||||
/>
|
||||
<q-breadcrumbs-el
|
||||
class="text-black"
|
||||
v-for="fragments in currentPath.split('/').filter(Boolean)"
|
||||
class="text-primary pointer"
|
||||
v-for="(fragments, index) in currentPath
|
||||
.split('/')
|
||||
.filter(Boolean)"
|
||||
:label="fragments"
|
||||
@click="
|
||||
() => {
|
||||
currentPath =
|
||||
currentPath
|
||||
.split('/')
|
||||
.filter(Boolean)
|
||||
.slice(0, index + 1)
|
||||
.join('/') + '/'
|
||||
|
||||
getFolder(currentPath)
|
||||
}
|
||||
"
|
||||
/>
|
||||
</q-breadcrumbs>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue