fix: Fix the issue of abnormal compose directory redirection (#11223)

This commit is contained in:
ssongliu
2025-12-06 14:14:28 +00:00
committed by GitHub
parent a034b03c1d
commit 87bbe4ee12
@@ -68,8 +68,8 @@
plain
round
size="small"
:disabled="!currentCompose?.workdir"
@click="openComposeFolder"
:disabled="!row?.workdir"
@click="openComposeFolder(row)"
>
{{ $t('home.dir') }}
</el-button>
@@ -459,9 +459,9 @@ const onSubmitEdit = async () => {
});
};
const openComposeFolder = () => {
if (currentCompose.value?.workdir) {
routerToFileWithPath(currentCompose.value.workdir);
const openComposeFolder = (row: any) => {
if (row?.workdir) {
routerToFileWithPath(row.workdir);
}
};
const onInspectContainer = async (item: any) => {