mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
feat: Made save button work
This commit is contained in:
parent
afacc79b56
commit
9e6ec92628
@ -159,6 +159,12 @@ async function onSettingWindowCreated(view: Element) {
|
||||
});
|
||||
});
|
||||
|
||||
// 保存按钮
|
||||
doc.querySelector('#config-ob11-save').addEventListener('click', () => {
|
||||
window.llonebot.setConfig(config)
|
||||
alert('保存成功');
|
||||
});
|
||||
|
||||
doc.body.childNodes.forEach(node => {
|
||||
view.appendChild(node);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user