profile 全局配置变量扁平化

This commit is contained in:
fofolee
2022-05-06 22:52:42 +08:00
parent dab334c471
commit 73e342c8c3
7 changed files with 28 additions and 47 deletions

View File

@@ -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("启动服务成功!");
});
},

View File

@@ -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);
});

View File

@@ -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);

View File

@@ -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 = [];