mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
autolaunch front
This commit is contained in:
@@ -6,18 +6,22 @@ class SettingController extends BaseController {
|
||||
|
||||
async autoLaunchEnable() {
|
||||
const { service } = this;
|
||||
const data = {};
|
||||
|
||||
await service.setting.autoLaunchEnable();
|
||||
const data = {
|
||||
isEnabled: true
|
||||
};
|
||||
|
||||
this.sendSuccess(data);
|
||||
}
|
||||
|
||||
async autoLaunchDisable() {
|
||||
const { service } = this;
|
||||
const data = {};
|
||||
|
||||
await service.setting.autoLaunchDisable();
|
||||
const data = {
|
||||
isEnabled: false
|
||||
};
|
||||
|
||||
this.sendSuccess(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user