diff --git a/src/components/CommandRunResult.vue b/src/components/CommandRunResult.vue
index 7223e26..169deab 100644
--- a/src/components/CommandRunResult.vue
+++ b/src/components/CommandRunResult.vue
@@ -23,7 +23,6 @@
+
@@ -238,22 +237,18 @@ export default {
this.runResultStatus = isSuccess;
if (!_.isArray(content)) content = [content];
this.runResult = this.runResult.concat(content);
- this.outputAutoHeight(this.fromUtools);
},
// 根据输出自动滚动及调整 utools 高度
- outputAutoHeight(autoHeight = true, autoScroll = true) {
- this.$nextTick(() => {
- let clientHeight = document.body.clientHeight;
- let pluginHeight =
- clientHeight < this.maxHeight ? clientHeight : this.maxHeight;
- autoHeight && utools.setExpendHeight(pluginHeight);
- autoScroll &&
- window.scroll({
- top: clientHeight,
- left: 0,
- behavior: "smooth",
- });
- });
+ outputAutoHeight(e) {
+ let autoScroll = 1;
+ let pluginHeight = e.height < this.maxHeight ? e.height : this.maxHeight;
+ this.fromUtools && utools.setExpendHeight(pluginHeight);
+ autoScroll &&
+ window.scroll({
+ top: e.height,
+ left: 0,
+ behavior: "smooth",
+ });
},
stopRun() {
this.runResult = [];
@@ -272,7 +267,6 @@ export default {
quickcommand.closeWaitButton();
},
frameLoad(initHeight) {
- this.outputAutoHeight(this.fromUtools);
this.frameInitHeight = initHeight;
},
},
diff --git a/src/components/ResultArea.vue b/src/components/ResultArea.vue
index fe5821c..08ace8c 100644
--- a/src/components/ResultArea.vue
+++ b/src/components/ResultArea.vue
@@ -16,12 +16,8 @@
class="text q-pa-md"
>
diff --git a/src/components/popup/ObjectTree.vue b/src/components/popup/ObjectTree.vue
index d9f144a..828a96c 100644
--- a/src/components/popup/ObjectTree.vue
+++ b/src/components/popup/ObjectTree.vue
@@ -120,7 +120,6 @@ export default {
}
}
done(children);
- this.$emit("expandTrees");
},
hasChildren(item) {
if (typeof item === "object")