docs: service组件文档示例里将dataProvider错写成func (#3638)

Co-authored-by: allanyu <allanyu@tencent.com>
This commit is contained in:
luckyufei 2022-02-25 12:36:10 +08:00 committed by GitHub
parent 172d410dd6
commit 599c404f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -495,7 +495,7 @@ wsFetcher(ws, onMessage, onError) {
```javascript ```javascript
{ {
"type": "service", "type": "service",
"func": async (data, setData) => { "dataProvider": async (data, setData) => {
const timer = setInterval(() => { const timer = setInterval(() => {
setData({date: new Date().toString()}) setData({date: new Date().toString()})
}, 1000); }, 1000);