Skip to content

Commit

Permalink
feat: 进程守护增加运行目录跳转 (#5088)
Browse files Browse the repository at this point in the history
Refs #4953
  • Loading branch information
ssongliu committed May 22, 2024
1 parent 6131a99 commit 4dc722b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions frontend/src/views/toolbox/supervisor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@
fix
show-overflow-tooltip
></el-table-column>
<el-table-column
:label="$t('tool.supervisor.dir')"
prop="dir"
min-width="100px"
fix
show-overflow-tooltip
></el-table-column>
<el-table-column :label="$t('tool.supervisor.dir')" prop="dir" min-width="100px" fix>
<template #default="{ row }">
<Tooltip @click="toFolder(row.dir)" :text="row.dir" />
</template>
</el-table-column>
<el-table-column
:label="$t('tool.supervisor.user')"
prop="user"
Expand Down Expand Up @@ -161,6 +159,7 @@ import i18n from '@/lang';
import { HostTool } from '@/api/interface/host-tool';
import { MsgSuccess } from '@/utils/message';
import { VideoPlay, VideoPause, RefreshRight } from '@element-plus/icons-vue';
import router from '@/routers';
const globalStore = GlobalStore();
const loading = ref(false);
Expand All @@ -186,6 +185,10 @@ const getStatus = (status: any) => {
search();
};
const toFolder = (folder: string) => {
router.push({ path: '/hosts/files', query: { path: folder } });
};
const showStopped = computed((): boolean => {
if (supervisorStatus.value.init || setSuperVisor.value) {
return false;
Expand Down

0 comments on commit 4dc722b

Please sign in to comment.