mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
refactor: 'heartInterval', 'token', 'ffmpeg' not need auto save
This commit is contained in:
@@ -25,7 +25,9 @@ async function onSettingWindowCreated(view: Element) {
|
||||
if (configKey.length === 2) config[configKey[0]][configKey[1]] = value;
|
||||
else config[key] = value;
|
||||
|
||||
window.llonebot.setConfig(config);
|
||||
if (!['heartInterval', 'token', 'ffmpeg'].includes(key)){
|
||||
window.llonebot.setConfig(config);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user