fix: Missing setting option

This commit is contained in:
Misa Liu 2024-03-04 22:00:33 +08:00
parent f4fbe198e9
commit 9acb0665d8
No known key found for this signature in database
GPG Key ID: F70B23D0A4FED791

View File

@ -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) {
`<div class="q-input"><input class="q-input__inner" type="number" min="1" value="${config.autoDeleteFileSecond}" placeholder="${config.autoDeleteFileSecond}" /></div>`,
'config-auto-delete-file-second', config.autoDeleteFile
),
SettingItem(
'写入日志',
`将日志文件写入插件的数据文件夹`,
SettingSwitch('log', config.log),
),
SettingItem(
'日志文件目录',
`${window.LiteLoader.plugins['LLOneBot'].path.data}`,
SettingButton('打开', 'config-open-log-path'),
),
]),
'</div>',
].join(''), "text/html");