mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-24 04:21:23 +08:00
添加快捷命令服务的功能
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -33,6 +33,16 @@ export default defineComponent({
|
||||
});
|
||||
return;
|
||||
}
|
||||
// 如果配置了后台服务则开启监听
|
||||
if (this.$profile.quickFeatures.apiServer.serverStatus) {
|
||||
window
|
||||
.quickcommandHttpServer()
|
||||
.run(
|
||||
this.$profile.quickFeatures.apiServer.cmd,
|
||||
this.$profile.quickFeatures.apiServer.port
|
||||
);
|
||||
console.log("Server Start...");
|
||||
}
|
||||
// 默认主题色
|
||||
this.setCssVar("primary", this.$profile.primaryColor);
|
||||
// 进入插件
|
||||
|
||||
Reference in New Issue
Block a user