mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-10 23:54:57 +08:00
调整顺序
This commit is contained in:
parent
619bf5789e
commit
899b20db8d
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user