Skip to content

Commit

Permalink
[fix WeBankFinTech#572] fix bug that apiservice can't get result
Browse files Browse the repository at this point in the history
  • Loading branch information
wayson20 committed Jun 17, 2022
1 parent aee9c41 commit e96f6ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/common/service/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Execute.prototype.queryLog = function() {
.then((rst) => {
this.fromLine = rst.fromLine;
this.handleLines = this.handleLines || {}
if (this.handleLines[fromLine+'_'+this.fromLine] && this.fromLine) {
if (this.handleLines[fromLine+'_'+this.fromLine] && this.fromLine) {
return Promise.resolve();
} else if(this.fromLine) {
this.handleLines[fromLine+'_'+this.fromLine] = 1
Expand Down Expand Up @@ -376,6 +376,7 @@ Execute.prototype.getFirstResult = function() {
taskID: this.taskID,
status: this.status,
});
const pageSize = 5000;
let params = {
path: this.currentResultPath,
pageSize,
Expand All @@ -385,7 +386,7 @@ Execute.prototype.getFirstResult = function() {
params.taskId = this.taskID
}
const url = `/${this.getResultUrl}/openFile`;
const pageSize = 5000;

api.fetch(url, params, 'get')
.then((rst) => {
this.trigger('result', rst);
Expand Down

0 comments on commit e96f6ba

Please sign in to comment.