mirror of
https://github.com/crystelf/crystelf-admin.git
synced 2025-12-05 13:41:57 +00:00
fix:修复配置问题
This commit is contained in:
parent
4d40e13432
commit
9cda3fe7f0
@ -18,7 +18,7 @@ export default class CoreRestart extends plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async restart(e) {
|
async restart(e) {
|
||||||
if (!configControl.get('config')?.core) {
|
if (!configControl.get()?.core) {
|
||||||
return e.reply(`晶灵核心未启用..`, true);
|
return e.reply(`晶灵核心未启用..`, true);
|
||||||
}
|
}
|
||||||
const returnData = await systemControl.systemRestart();
|
const returnData = await systemControl.systemRestart();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user