This commit is contained in:
nguyentrungthat 2025-12-20 10:13:33 +07:00
parent b9598f9351
commit 744472f3da
2 changed files with 9 additions and 3 deletions

View File

@ -182,7 +182,8 @@ export default class LineConnection {
if (!this.config.inventory)
this.outputInventory = this.outputInventory.slice(-3000) + message
}
if (data.toString().includes('More')) this.writeCommand(' ')
if (data.toString().includes('More') || data.toString().includes('MORE'))
this.writeCommand(' ')
// let output = cleanData(message)
// console.log(`📨 [${this.config.port}] ${message}`)
@ -339,7 +340,10 @@ export default class LineConnection {
lineId: this.config.id,
title: script?.title,
})
if (script?.send_result || script?.sendResult) this.dataDPELP = ''
if (script?.send_result || script?.sendResult) {
this.dataDPELP = ''
this.config.inventory = ''
}
if (script?.isReboot) {
await sleep(10000)

View File

@ -365,7 +365,9 @@ function ModalScenario({
);
form.setFieldValue(
"isReboot",
scenario.is_reboot
typeof scenario.isReboot !== "undefined"
? scenario.isReboot
: scenario?.is_reboot
);
form.setFieldValue(
"send_result",