From 0243a4c255da31edb3efb083f64a3ba5714e275b Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:43:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E7=BC=96=E6=8E=92=E8=B7=B3=E8=BD=AC=E8=B7=AF=E5=BE=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98=20(#6773)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/container/compose/index.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/src/views/container/compose/index.vue b/frontend/src/views/container/compose/index.vue index a57eed011..938b21e30 100644 --- a/frontend/src/views/container/compose/index.vue +++ b/frontend/src/views/container/compose/index.vue @@ -94,7 +94,6 @@ import ComposeDetail from '@/views/container/compose/detail/index.vue'; import { loadContainerLog, loadDockerStatus, searchCompose } from '@/api/modules/container'; import i18n from '@/lang'; import { Container } from '@/api/interface/container'; -import { loadBaseDir } from '@/api/modules/setting'; import router from '@/routers'; const data = ref(); @@ -102,7 +101,6 @@ const selects = ref([]); const loading = ref(false); const isOnDetail = ref(false); -const baseDir = ref(); const paginationConfig = reactive({ cacheSizeKey: 'container-compose-page-size', @@ -133,12 +131,7 @@ const goSetting = async () => { }; const toComposeFolder = async (row: Container.ComposeInfo) => { - router.push({ path: '/hosts/files', query: { path: baseDir.value + '/docker/compose/' + row.name } }); -}; - -const loadPath = async () => { - const pathRes = await loadBaseDir(); - baseDir.value = pathRes.data; + router.push({ path: '/hosts/files', query: { path: row.workdir } }); }; const search = async () => { @@ -230,7 +223,6 @@ const buttons = [ }, ]; onMounted(() => { - loadPath(); loadStatus(); });