调整顺序

This commit is contained in:
fofolee 2022-04-30 13:39:04 +08:00
parent 619bf5789e
commit 899b20db8d

View File

@ -252,13 +252,19 @@ export default {
},
//
async showRunResult(content, isSuccess) {
this.isResultShow = true;
this.timeStamp = new Date().getTime();
content = await this.handleContent(content);
this.runResultStatus = isSuccess;
this.runResult = this.runResult.concat(content);
//
this.isResultShow
? (this.timeStamp = new Date().getTime())
: (this.isResultShow = true);
this.autoScroll();
},
async handleContent(content) {
if (!_.isArray(content)) content = [content];
if (this.enableHtml) content = await this.cacheScript(content);
this.runResult = this.runResult.concat(content);
this.autoScroll();
return content;
},
// utools
autoHeight(e) {