feat: update TaskList component to display script execution time range and remove real-time timer

This commit is contained in:
duanshuwen
2026-04-16 18:45:56 +08:00
parent 210e8eb363
commit d233b94b2a
4 changed files with 25 additions and 30 deletions

View File

@@ -24,7 +24,8 @@ export const useTaskStore = defineStore('task', () => {
// 持久化 helper用于减少写盘次数可在需要时调用
const persist = async () => {
try {
await window.api.invoke(IPC_EVENTS.SET_CONFIG, CONFIG_KEYS.TASK_LIST, tasks.value);
const payload = JSON.parse(JSON.stringify(tasks.value))
await window.api.invoke(IPC_EVENTS.SET_CONFIG, CONFIG_KEYS.TASK_LIST, payload);
} catch (e) {
console.error('Failed to persist tasks', e);
}