| title | demo 使用相关 API |
|---|---|
| sidebar_position | 2 |
// 请求 userList(userList 在数据源面板中定义)
this.dataSourceMap['userList'].load({
data: {}
}).then(res => {})
.catch(error => {});const { userList } = this.state;// 获取数据源面板中定义的值
const { user } = this.state;
// 修改 state 值
this.setState({
user: {}
});