Update TerminalCore.vue

This commit is contained in:
Lazy 2024-12-16 15:33:16 +08:00
parent d78deac2a4
commit 3af2c1437e

View File

@ -78,7 +78,6 @@ events.on("error", (error: Error) => {
});
events.once("detail", async () => {
term = await initTerminal();
try {
const { value } = await getInstanceOutputLog().execute({
params: { uuid: instanceId || "", daemonId: daemonId || "" }
@ -110,6 +109,7 @@ onMounted(async () => {
daemonId
});
}
term = await initTerminal();
} catch (error: any) {
console.error(error);
throw error;