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

Function handleTaskChange

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

Source from the content-addressed store, hash-verified

5120function TaskList() {
5121 // 处理任务设置变化
5122 const handleTaskChange = (e, type, title) => {
5123 // 开关
5124 const { checked } = e.target;
5125 if (taskConfig[type].active !== checked) {
5126 taskConfig[type].active = checked;
5127 // 设置
5128 GM_setValue('taskConfig', JSON.stringify(taskConfig));
5129 // 创建提示
5130 createTip(`${title} ${checked ? '打开' : '关闭'}!`);
5131 }
5132 };
5133 // 登录加载
5134 watch(login, async () => {
5135 if (login.value) {

Callers 1

TaskListFunction · 0.70

Calls 1

createTipFunction · 0.70

Tested by

no test coverage detected