mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-24 15:14:01 +08:00
Feat: to Page
Terminal, FileManager
This commit is contained in:
parent
17b635f9c7
commit
09c1dbd55d
@ -23,11 +23,14 @@ import {
|
||||
connectNode
|
||||
} from "@/services/apis";
|
||||
import { message } from "ant-design-vue";
|
||||
import { useAppRouters } from "@/hooks/useAppRouters";
|
||||
|
||||
defineProps<{
|
||||
card: LayoutCard;
|
||||
}>();
|
||||
|
||||
const { toPage } = useAppRouters();
|
||||
|
||||
const operationForm = ref({
|
||||
name: ""
|
||||
});
|
||||
@ -72,14 +75,24 @@ const nodeOperations = [
|
||||
title: t("TXT_CODE_ae533703"),
|
||||
icon: FolderOpenOutlined,
|
||||
click: () => {
|
||||
console.log(3);
|
||||
toPage({
|
||||
path: "/instances/terminal/files"
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
title: t("TXT_CODE_524e3036"),
|
||||
icon: CodeOutlined,
|
||||
click: () => {
|
||||
console.log(3);
|
||||
click: (item: ComputedNodeInfo) => {
|
||||
const daemonId = item.uuid;
|
||||
const instanceId = "global0001";
|
||||
toPage({
|
||||
path: "/instances/terminal",
|
||||
query: {
|
||||
daemonId,
|
||||
instanceId
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user