免登服务出错 dd.runtime.permission.requestAuthCode
dd.ready(function () { dd.runtime.permission.requestAuthCode({ corpId: 'corpId', onSuccess: function (result: any) { console.log(result) }, onFail: function (err: any) { console.log(err) } ts下onsuccess报错 类型“{ corpId: string; onSuccess: (result: any) => void; onFail: (err: any) => void; }”的参数不能赋给类型“IRuntimePermissionRequestAuthCodeParams”的参数。 对象文字可以只指定已知属性,并且“onSuccess”不在类型“IRuntimePermissionRequestAuthCodeParams”中。ts(2345)
})
})
赞0
踩0