Skip to content

Commit 2591ff9

Browse files
committed
fix: Fix the issue of abnormal container orchestration directory redirection
1 parent a034b03 commit 2591ff9

File tree

1 file changed

+5
-5
lines changed
  • frontend/src/views/container/compose

1 file changed

+5
-5
lines changed

frontend/src/views/container/compose/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
plain
6969
round
7070
size="small"
71-
:disabled="!currentCompose?.workdir"
72-
@click="openComposeFolder"
71+
:disabled="!row?.workdir"
72+
@click="openComposeFolder(row)"
7373
>
7474
{{ $t('home.dir') }}
7575
</el-button>
@@ -459,9 +459,9 @@ const onSubmitEdit = async () => {
459459
});
460460
};
461461
462-
const openComposeFolder = () => {
463-
if (currentCompose.value?.workdir) {
464-
routerToFileWithPath(currentCompose.value.workdir);
462+
const openComposeFolder = (row: any) => {
463+
if (row?.workdir) {
464+
routerToFileWithPath(row.workdir);
465465
}
466466
};
467467
const onInspectContainer = async (item: any) => {

0 commit comments

Comments
 (0)