(e, type, title)
| 5911 | ]; |
| 5912 | // 处理设置变化 |
| 5913 | const handleSettingsChange = (e, type, title) => { |
| 5914 | // 开关 |
| 5915 | const { checked } = e.target; |
| 5916 | if (settings[type] !== checked) { |
| 5917 | settings[type] = checked; |
| 5918 | // 设置 |
| 5919 | GM_setValue('studySettings', JSON.stringify(settings)); |
| 5920 | // 创建提示 |
| 5921 | createTip(`${title} ${checked ? '打开' : '关闭'}!`); |
| 5922 | } |
| 5923 | }; |
| 5924 | // 任务显示 |
| 5925 | const scheduleShow = ref(false); |
| 5926 | // 面板显示 |