修复 kuaishou-lewan 登录验证后未保存的新账号被服务端数据覆盖丢失

This commit is contained in:
yml2213
2026-08-08 02:02:31 +08:00
parent 3a2147e94b
commit 84a4c6c627
@@ -2035,7 +2035,18 @@ function CloudtentaclesPlatformPanel({
deviceType: selectedSource.deviceType,
})
const nextConfig = await fetchAdminCloudtentaclesSourceConfig()
onChange(nextConfig.data)
onChange({
...nextConfig.data,
sources: [
...nextConfig.data.sources,
...config.sources.filter(
(source) =>
!nextConfig.data.sources.some(
(item) => item.key === source.key,
),
),
],
})
return response.data
})
}