提交 e34cda93 编写于 作者: D DCloud_LXH

fix(App): getProvider

上级 5d6bd74e
......@@ -5,7 +5,7 @@ import {
GetProviderProtocol,
} from '@dcloudio/uni-api'
type Provider = PlusOauthAuthService['id'][]
type Provider = (PlusShareShareService['id'] | PlusOauthAuthService['id'])[]
type CallBack = (err: null | Error, provider?: Provider) => void
const providers = {
......@@ -28,6 +28,7 @@ const providers = {
share(callback: CallBack) {
plus.share.getServices(
(services) => {
services = services as PlusShareShareService[]
const provider: Provider = []
services.forEach(({ id }) => {
provider.push(id)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册