1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

fix: 解决容器编排跳转路径错误的问题 (#6773)

This commit is contained in:
ssongliu 2024-10-18 16:43:37 +08:00 committed by GitHub
parent b047a053c5
commit fa03b4226a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<any>([]);
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();
});
</script>