提交 ec3f6836 编写于 作者: 雪洛's avatar 雪洛

docs: update uniCloud client sdk

上级 69f5c657
......@@ -392,7 +392,7 @@ interface OnRefreshTokenEvent {
- 开发者自定监听onNeedLogin事件后,uniIdRouter的自动跳转登录页面功能会禁用,由开发者在`onNeedLogin`内自行处理跳转
### 移除需要登录事件的监听@off-need-login
### 移除token刷新事件的监听@off-refresh-token
> 新增于HBuilderX 3.5.0
......@@ -402,10 +402,10 @@ interface OnRefreshTokenEvent {
```js
// 错误用法,无法移除监听
uniCloud.onNeedLogin(function(e) {
uniCloud.onRefreshToken(function(e) {
console.log(e)
})
uniCloud.offNeedLogin(function(e) {
uniCloud.offRefreshToken(function(e) {
console.log(e)
})
......@@ -413,8 +413,8 @@ uniCloud.offNeedLogin(function(e) {
function log(e) {
console.log(e)
}
uniCloud.onNeedLogin(log)
uniCloud.offNeedLogin(log)
uniCloud.onRefreshToken(log)
uniCloud.offRefreshToken(log)
```
### 微信小程序安全网络初始化@init-secure-network-by-weixin
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册