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="ตู้เอกสารทั้งหมด"
|
label="ตู้เอกสารทั้งหมด"
|
||||||
/>
|
/>
|
||||||
<q-breadcrumbs-el
|
<q-breadcrumbs-el
|
||||||
class="text-black"
|
class="text-primary pointer"
|
||||||
v-for="fragments in currentPath.split('/').filter(Boolean)"
|
v-for="(fragments, index) in currentPath
|
||||||
|
.split('/')
|
||||||
|
.filter(Boolean)"
|
||||||
:label="fragments"
|
:label="fragments"
|
||||||
|
@click="
|
||||||
|
() => {
|
||||||
|
currentPath =
|
||||||
|
currentPath
|
||||||
|
.split('/')
|
||||||
|
.filter(Boolean)
|
||||||
|
.slice(0, index + 1)
|
||||||
|
.join('/') + '/'
|
||||||
|
|
||||||
|
getFolder(currentPath)
|
||||||
|
}
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
</q-breadcrumbs>
|
</q-breadcrumbs>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue