MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / handleSettingsChange

Function handleSettingsChange

tech-study.js:5913–5923  ·  view source on GitHub ↗
(e, type, title)

Source from the content-addressed store, hash-verified

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 // 面板显示

Callers 1

PanelFunction · 0.70

Calls 1

createTipFunction · 0.70

Tested by

no test coverage detected