Update
This commit is contained in:
parent
99b2641ea2
commit
3054874568
|
|
@ -274,6 +274,9 @@ export default class LineConnection {
|
|||
if (err) return
|
||||
|
||||
const logScenarios = getLogWithTimeScenario(content, now) || ''
|
||||
this.socketIO.emit('output_test_scenario', {
|
||||
data: logScenarios,
|
||||
})
|
||||
const data = textfsmResults(logScenarios, '')
|
||||
try {
|
||||
data.forEach((item) => {
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ export const DrawerAPCControl: React.FC<DrawerProps> = ({
|
|||
return () => {
|
||||
socket?.off("apc_output");
|
||||
};
|
||||
}, [socket, dataStation]);
|
||||
}, [socket, dataStation, stationAPI]);
|
||||
|
||||
const toggleSelect = (outlet: TSelectedOutlet, number: number) => {
|
||||
setListOutletSelected((prev) =>
|
||||
|
|
@ -831,7 +831,7 @@ export const DrawerSwitchControl: React.FC<DrawerProps> = ({
|
|||
return () => {
|
||||
socket?.off("switch_output");
|
||||
};
|
||||
}, [socket, dataStation]);
|
||||
}, [socket, dataStation, stationAPI]);
|
||||
|
||||
const toggleSelect = (port: SwitchPortsProps) => {
|
||||
setListPortsSelected((prev) =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue