[Fix][UI] fix bug where log modal display object (#11271)

This commit is contained in:
Devosend 2022-08-03 13:54:32 +08:00 committed by GitHub
parent 78e9122573
commit 9ba9a0ff82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -241,11 +241,11 @@ export default defineComponent({
taskInstanceId: nodeVariables.logTaskId,
limit: nodeVariables.limit,
skipLineNum: nodeVariables.skipLineNum
}).then((res: string) => {
nodeVariables.logRef += res
if (res) {
}).then((res: any) => {
if (res.message) {
nodeVariables.logRef += res.message
nodeVariables.limit += 1000
nodeVariables.skipLineNum += 1000
nodeVariables.skipLineNum += res.lineNum
getLogs()
} else {
nodeVariables.logLoadingRef = false