快捷命令服务改为内置 feature

This commit is contained in:
fofolee
2022-05-08 23:30:07 +08:00
parent 1e3042d7a0
commit 1b40855578
9 changed files with 105 additions and 56 deletions

View File

@@ -83,8 +83,8 @@ export default defineComponent({
this.runCronTask(featureCode, cronExp);
});
// 快捷命令服务
if (this.nativeProfile.apiServerStatus && this.profile.apiServerEnable) {
window.quickcommandHttpServer().run(this.profile.apiServerPort);
if (this.nativeProfile.serverStatus && this.profile.apiServerEnable) {
window.quickcommandHttpServer().run(this.nativeProfile.serverPort);
console.log("Server Start...");
}
},