添加console.clear

This commit is contained in:
fofolee
2025-02-28 09:35:55 +08:00
parent 9f9494a600
commit 70a2fb68bb
3 changed files with 11 additions and 3 deletions

View File

@@ -301,9 +301,13 @@ export default {
},
// 显示运行结果
async showRunResult(content, isSuccess) {
content = await this.handleContent(content);
if (content.__clearQuickcommandRunResult) {
this.runResult = [];
} else {
content = await this.handleContent(content);
this.runResult = this.runResult.concat(content);
}
this.runResultStatus = isSuccess;
this.runResult = this.runResult.concat(content);
// 刷新组件
this.isResultShow
? (this.timeStamp = new Date().getTime())