Update
This commit is contained in:
parent
b9598f9351
commit
744472f3da
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue