mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: 彻底 扬了Old WebUi
This commit is contained in:
@@ -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() {
|
||||
|
@@ -1,13 +0,0 @@
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
target: 'esnext',
|
||||
minify: false,
|
||||
lib: {
|
||||
entry: 'ui/NapCat.ts',
|
||||
formats: ['es'],
|
||||
fileName: () => 'renderer.js',
|
||||
},
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user