mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-04-06 17:10:29 +08:00
Fix: import type { Socket } from "socket.io-client";
This commit is contained in:
parent
0af37e2f88
commit
3a52460729
@ -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";
|
||||
|
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user