mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
profile 全局配置变量扁平化
This commit is contained in:
@@ -31,9 +31,7 @@
|
||||
<div class="q-gutter-xs">
|
||||
<q-badge color="primary" dense square>POST</q-badge
|
||||
><q-badge color="primary" dense square>GET</q-badge>
|
||||
<span>
|
||||
http://127.0.0.1:{{ $root.profile.quickFeatures.apiServer.port }}
|
||||
</span>
|
||||
<span> http://127.0.0.1:{{ $root.profile.apiServerPort }} </span>
|
||||
<span>的参数,均会作为本脚本里的变量 </span>
|
||||
</div>
|
||||
<q-btn-group unelevated>
|
||||
@@ -101,9 +99,7 @@ export default {
|
||||
)
|
||||
.then(() => {
|
||||
this.$root.profile.quickFeatures.apiServer.serverStatus = true;
|
||||
window
|
||||
.quickcommandHttpServer()
|
||||
.run(this.$root.profile.quickFeatures.apiServer.port);
|
||||
window.quickcommandHttpServer().run(this.$root.profile.apiServerPort);
|
||||
quickcommand.showMessageBox("启动服务成功!");
|
||||
});
|
||||
},
|
||||
|
@@ -21,7 +21,7 @@ export default {
|
||||
program: "quickcommand",
|
||||
cmd: `open(\"${file.path.replace(/\\/g, "\\\\")}\")`,
|
||||
output: "ignore",
|
||||
tags: [this.$root.profile.quickFeatures.favFile.tag],
|
||||
tags: [this.$root.profile.quickFileTag],
|
||||
};
|
||||
this.importCommand(command);
|
||||
});
|
||||
|
@@ -47,7 +47,7 @@ export default {
|
||||
program: "quickcommand",
|
||||
cmd: `visit(\"${url}\")\n`,
|
||||
output: "ignore",
|
||||
tags: [this.$root.profile.quickFeatures.favUrl.tag],
|
||||
tags: [this.$root.profile.quickUrlTag],
|
||||
};
|
||||
try {
|
||||
let res = await quickcommand.downloadFile(iconUrl, iconPath);
|
||||
|
@@ -127,7 +127,7 @@ export default {
|
||||
program: "quickcommand",
|
||||
cmd: `utools.redirect("${this.feature.cmd}");utools.showMainWindow()`,
|
||||
output: "ignore",
|
||||
tags: [this.$root.profile.quickFeatures.pluNickName.tag],
|
||||
tags: [this.$root.profile.pluNickNameTag],
|
||||
};
|
||||
this.importCommand(command);
|
||||
this.nickName = [];
|
||||
|
Reference in New Issue
Block a user