Fix: import type { Socket } from "socket.io-client";

This commit is contained in:
unitwk 2023-08-29 10:46:55 +08:00
parent 0af37e2f88
commit 3a52460729
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,8 @@
import { setUpTerminalStreamChannel } from "@/services/apis/instance";
import { parseForwardAddress } from "@/tools/protocol";
import { onUnmounted, ref, unref } from "vue";
import { io, Socket } from "socket.io-client";
import { io } from "socket.io-client";
import type { Socket } from "socket.io-client";
import { t } from "@/lang/i18n";
import EventEmitter from "eventemitter3";
import type { DefaultEventsMap } from "@socket.io/component-emitter";

View File

@ -65,9 +65,9 @@ const instanceOperations = arrayFilter([
const { execute, events, state } = useTerminal();
// events.on("detail", (v: InstanceDetail) => {
// console.debug("XZXZX:", v);
// });
events.on("stdout", (v: InstanceDetail) => {
console.debug("stdout:", v);
});
onMounted(async () => {
await execute({