mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 13:47:44 +00:00
fix: 修复全局时间配置和获取
This commit is contained in:
parent
40bfbda264
commit
22711ee7b1
2 changed files with 5 additions and 3 deletions
|
|
@ -10,7 +10,8 @@ export async function setGlobalRemind() {
|
|||
if (!match) return;
|
||||
const remindTime = match[1];
|
||||
|
||||
// 将全局提醒时间写入yaml配置
|
||||
settings.setConfig('remind.globalRemindTime', remindTime);
|
||||
// 使用 setSingleConfig 更新特定字段
|
||||
settings.setSingleConfig('remind', 'globalRemindTime', remindTime);
|
||||
|
||||
await this.reply(`全局提醒时间已更新为: ${remindTime}。`);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue