feat: 容器存储卷快捷进入挂载点文件目录 #1325 (#1357)

Co-authored-by: 凹凸曼 <xx@xx>
pull/1365/head
凹凸曼 1 year ago committed by GitHub
parent 68ad653545
commit 03c8e4d3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,16 @@
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
prop="mountpoint" prop="mountpoint"
/> >
<template #default="{ row }">
{{ row.mountpoint }}
<el-button type="primary" link @click="toFolder(row.mountpoint)">
<el-icon>
<FolderOpened />
</el-icon>
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
:label="$t('container.driver')" :label="$t('container.driver')"
show-overflow-tooltip show-overflow-tooltip
@ -124,7 +133,9 @@ const loadStatus = async () => {
const goSetting = async () => { const goSetting = async () => {
router.push({ name: 'ContainerSetting' }); router.push({ name: 'ContainerSetting' });
}; };
const toFolder = (folder: string) => {
router.push({ path: '/hosts/files', query: { path: folder } });
};
const dialogCreateRef = ref<DialogExpose>(); const dialogCreateRef = ref<DialogExpose>();
interface DialogExpose { interface DialogExpose {

Loading…
Cancel
Save