mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
docs: service组件文档示例里将dataProvider错写成func (#3638)
Co-authored-by: allanyu <allanyu@tencent.com>
This commit is contained in:
parent
172d410dd6
commit
599c404f31
@ -495,7 +495,7 @@ wsFetcher(ws, onMessage, onError) {
|
||||
```javascript
|
||||
{
|
||||
"type": "service",
|
||||
"func": async (data, setData) => {
|
||||
"dataProvider": async (data, setData) => {
|
||||
const timer = setInterval(() => {
|
||||
setData({date: new Date().toString()})
|
||||
}, 1000);
|
||||
|
Loading…
Reference in New Issue
Block a user