diff --git a/src/renderer/index.ts b/src/renderer/index.ts index cf7543f..2329bce 100644 --- a/src/renderer/index.ts +++ b/src/renderer/index.ts @@ -82,11 +82,6 @@ async function onSettingWindowCreated(view: Element) { '慎用,可能会导致自己跟自己聊个不停', SettingSwitch('reportSelfMessage', config.reportSelfMessage), ), - SettingItem( - '写入日志', - `日志文件目录:${window.LiteLoader.plugins['LLOneBot'].path.data}`, - SettingButton('打开', 'config-open-log-path'), - ), SettingItem( '自动删除收到的文件', '在收到文件后的指定时间内删除该文件', @@ -98,6 +93,16 @@ async function onSettingWindowCreated(view: Element) { `
`, 'config-auto-delete-file-second', config.autoDeleteFile ), + SettingItem( + '写入日志', + `将日志文件写入插件的数据文件夹`, + SettingSwitch('log', config.log), + ), + SettingItem( + '日志文件目录', + `${window.LiteLoader.plugins['LLOneBot'].path.data}`, + SettingButton('打开', 'config-open-log-path'), + ), ]), '', ].join(''), "text/html");