This commit is contained in:
nguyentrungthat 2025-11-10 11:25:47 +07:00
parent 99b2641ea2
commit 3054874568
2 changed files with 5 additions and 2 deletions

View File

@ -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) => {

View File

@ -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) =>