mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 06:06:52 +08:00
执行命令时,插件高度为0,有输出再展开
This commit is contained in:
parent
2652546c50
commit
32484d5d73
@ -6,6 +6,7 @@ utools.onPluginEnter( async ({ code, type, payload }) => {
|
||||
$("#options").show();
|
||||
showOptions();
|
||||
} else {
|
||||
utools.setExpendHeight(0);
|
||||
$("#options").hide();
|
||||
$("#out").show().text('');
|
||||
var db = utools.db.get('customFts').data[code],
|
||||
@ -109,9 +110,11 @@ function runCmd(cmd, option, output) {
|
||||
// 有输出
|
||||
switch (output) {
|
||||
case "text":
|
||||
utools.setExpendHeight(600);
|
||||
$("#out").text(stdout);
|
||||
break;
|
||||
case "html":
|
||||
utools.setExpendHeight(600);
|
||||
$("#out").html(stdout);
|
||||
break;
|
||||
case "clip":
|
||||
|
Loading…
x
Reference in New Issue
Block a user