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
|
```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);
|
||||||
|
Loading…
Reference in New Issue
Block a user