autolaunch front

This commit is contained in:
gaoshuaixing
2020-12-31 16:44:06 +08:00
parent 34c7ea7339
commit 95e2380eeb
12 changed files with 133 additions and 109 deletions

View File

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