fix: optimize feedback and app icon (#1099)

This commit is contained in:
bowen
2023-09-05 09:13:59 +08:00
committed by GitHub
parent 7c66d3c793
commit 4a28599fbd
15 changed files with 45 additions and 37 deletions

View File

@@ -119,9 +119,11 @@ function AppCard({
}
const onGenCode = async () => {
setGenLoading(true)
await asyncRunSafe(onGenerateCode?.() as any)
setGenLoading(false)
if (onGenerateCode) {
setGenLoading(true)
await asyncRunSafe(onGenerateCode())
setGenLoading(false)
}
}
return (