vue项目调用云对象uni-id-co,url是https://xxxx.next.bspapp.com/sch/uid/createCaptcha,已配置url化,配置了/sch/uid
传参:
{
clientInfo: {
uniPlatform: 'web',
appId: 'UNIxxx'
},
uniIdToken: '',
params: { scene: 'register' }
}
uni-id-page的版本是1.0.31

- 发布:2023-05-26 21:52
- 更新:2023-05-29 17:01
- 阅读:247
产品分类: uniCloud/App
操作步骤:
预期结果:
正常返回,不报错。
文档那里说,自uni-id-pages@1.0.29版本起支持URL化,我的是1.0.31,而且文档说非uniapp项目要在参数的clientInfo里加uniPlatform和appId,妹说要什么deviceId啊
正常返回,不报错。
文档那里说,自uni-id-pages@1.0.29版本起支持URL化,我的是1.0.31,而且文档说非uniapp项目要在参数的clientInfo里加uniPlatform和appId,妹说要什么deviceId啊
实际结果:
报错:deviceId不可为空
报错:deviceId不可为空
bug描述:
我的项目是vue-element项目,用axios调用uni-id-co的createCaptcha创建图形验证码,报错:deviceId不可为空
url是https://xxxx.next.bspapp.com/sch/uid/createCaptcha,已配置url化,配置了/sch/uid
传参:
{
clientInfo: {
uniPlatform: 'web',
appId: 'UNIxxx'
},
uniIdToken: '',
params: { scene: 'register' }
}
uni-id-page的版本是1.0.31
怒海狂鲨 (作者)
我看文档更新了,“设备 id;通过uni.getSystemInfo获取”,可是这不是uniapp以外的项目吗?怎么用uni的api?
2023-05-29 17:22
DCloud_uniCloud_CRL
回复 怒海狂鲨: 自己指定一个deviceid也可以
2023-05-29 19:29