Browse Source

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

Co-authored-by: 凹凸曼 <xx@xx>
pull/1365/head
凹凸曼 1 year ago committed by GitHub
parent
commit
03c8e4d3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      frontend/src/views/container/volume/index.vue

15
frontend/src/views/container/volume/index.vue

@ -54,7 +54,16 @@
show-overflow-tooltip
min-width="120"
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
:label="$t('container.driver')"
show-overflow-tooltip
@ -124,7 +133,9 @@ const loadStatus = async () => {
const goSetting = async () => {
router.push({ name: 'ContainerSetting' });
};
const toFolder = (folder: string) => {
router.push({ path: '/hosts/files', query: { path: folder } });
};
const dialogCreateRef = ref<DialogExpose>();
interface DialogExpose {

Loading…
Cancel
Save