diff --git a/packages/uni-uts-v1/src/utils.ts b/packages/uni-uts-v1/src/utils.ts index 69cf703b518..d3e0bba31f8 100644 --- a/packages/uni-uts-v1/src/utils.ts +++ b/packages/uni-uts-v1/src/utils.ts @@ -830,7 +830,10 @@ export function formatUniProviderName(service: string) { } function formatExtApiProviderName(service: string, name: string) { - return `${formatUniProviderName(service)}${capitalize( + if (service === 'oauth') { + service = 'OAuth' + } + return `Uni${capitalize(camelize(service))}${capitalize( camelize(name) )}ProviderImpl` }