修复 kuaishou-lewan 登录验证后未保存的新账号被服务端数据覆盖丢失
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user