{error ? (
{error}
) : connecting ? (
正在连接...
) : connected ? (
) : (
)}
终端
消息
{
terminalRefs.current.push(ref);
}}
onTerminalReady={(terminal) => {
console.log("onTerminalReady", terminal);
// workbenchStore.attachTerminal(terminal)
// terminalRef.current = ref;
attachTerminal(terminal);
}}
onTerminalResize={(cols, rows) => {
// workbenchStore.onTerminalResize(cols, rows);
}}
theme={theme}
/>
{listItem?.length > 0 ? (
{listItem?.map((item, i) => (
// biome-ignore lint/suspicious/noArrayIndexKey:
{item}
))}
) : null}
>
);
};