代码优化

This commit is contained in:
wong
2025-12-05 11:36:03 +08:00
parent 2697da15aa
commit 63df35b79c
3 changed files with 24 additions and 18 deletions

View File

@@ -63,8 +63,8 @@ const NewMomentsSync: React.FC = () => {
if (res) {
setFormData({
taskName: res.name,
startTime: res.timeRange?.start || "06:00",
endTime: res.timeRange?.end || "23:59",
startTime: res.config?.startTime || "06:00",
endTime: res.config?.endTime || "23:59",
syncCount: res.config?.syncCount || res.syncCount || 5,
syncInterval: res.config?.syncInterval || res.syncInterval || 30,
syncType: res.config?.syncType,