feat: 彻底 扬了Old WebUi

This commit is contained in:
手瓜一十雪 committed 2024-11-15 16:56:53 +08:00
1 parent aacc036d7a
commit 2cf86b8a6b
2 files changed
+6 -19

No files matched your search

+6 -6
View File
@@ -140,12 +140,12 @@ export class NapCatOneBot11Adapter {
await WebUiDataRuntime.setQQLoginUin(selfInfo.uin.toString());
await WebUiDataRuntime.setQQLoginStatus(true);
// await WebUiDataRuntime.setOnOB11ConfigChanged(async (newConfig: OB11Config) => {
// const prev = this.configLoader.configData;
// this.configLoader.save(newConfig);
// this.context.logger.log(`OneBot11 配置更改:${JSON.stringify(prev)} -> ${JSON.stringify(newConfig)}`);
// await this.reloadNetwork(prev, newConfig);
// });
await WebUiDataRuntime.setOnOB11ConfigChanged(async (newConfig) => {
const prev = this.configLoader.configData;
this.configLoader.save(newConfig);
this.context.logger.log(`OneBot11 配置更改:${JSON.stringify(prev)} -> ${JSON.stringify(newConfig)}`);
//await this.reloadNetwork(prev, newConfig);
});
}
initRecentContactListener() {