feat: update TaskList component to display script execution time range and remove real-time timer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user