feat: File management mounting directory (#8498)

This commit is contained in:
2025-04-28 15:01:49 +08:00 committed by GitHub
parent 6eacf0738e
commit 8338582051
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,6 +241,9 @@
<template #dropdown> <template #dropdown>
<el-dropdown-menu> <el-dropdown-menu>
<template v-for="(mount, index) in hostMount" :key="mount.path"> <template v-for="(mount, index) in hostMount" :key="mount.path">
<el-dropdown-item v-if="index == 0" @click.stop="jump(mount.path)">
{{ mount.path }} ({{ $t('file.root') }}) {{ getFileSize(mount.free) }}
</el-dropdown-item>
<el-dropdown-item v-if="index != 0" @click.stop="jump(mount.path)"> <el-dropdown-item v-if="index != 0" @click.stop="jump(mount.path)">
{{ mount.path }} ({{ $t('home.mount') }}) {{ getFileSize(mount.free) }} {{ mount.path }} ({{ $t('home.mount') }}) {{ getFileSize(mount.free) }}
</el-dropdown-item> </el-dropdown-item>