Update
This commit is contained in:
parent
b14a21088e
commit
99b2641ea2
|
|
@ -281,8 +281,7 @@ export default class LineConnection {
|
|||
if (
|
||||
['show inventory', 'sh inventory', 'show inv', 'sh inv'].includes(
|
||||
item.command
|
||||
) &&
|
||||
!this.config.inventory
|
||||
)
|
||||
) {
|
||||
this.config.inventory = JSON.parse(item.textfsm)[0]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,8 +91,8 @@ function App() {
|
|||
if (response.status) {
|
||||
if (Array.isArray(response.data)) {
|
||||
setStations(response.data);
|
||||
if (response.data?.length > 0)
|
||||
setActiveTab(response.data[0]?.id.toString());
|
||||
// if (response.data?.length > 0)
|
||||
// setActiveTab(response.data[0]?.id.toString());
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@ const TerminalCLI: React.FC<TerminalCLIProps> = ({
|
|||
foreground: "#41ee4a",
|
||||
cursor: "#ffffff",
|
||||
},
|
||||
// rows: 24,
|
||||
// cols: 80,
|
||||
rows: 24,
|
||||
cols: 80,
|
||||
});
|
||||
const fitAddon = new FitAddon();
|
||||
fitRef.current = fitAddon;
|
||||
|
|
|
|||
Loading…
Reference in New Issue