调整顺序

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) { async showRunResult(content, isSuccess) {
this.isResultShow = true; content = await this.handleContent(content);
this.timeStamp = new Date().getTime();
this.runResultStatus = isSuccess; 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 (!_.isArray(content)) content = [content];
if (this.enableHtml) content = await this.cacheScript(content); if (this.enableHtml) content = await this.cacheScript(content);
this.runResult = this.runResult.concat(content); return content;
this.autoScroll();
}, },
// utools // utools
autoHeight(e) { autoHeight(e) {