lowcode-engine
lowcode-engine copied to clipboard
关于数据请求
{
type: 'fetch',
isInit: false,
options: {
// "params": {
// "userId": ""
// },
method: 'DELETE',
isCors: true,
timeout: 5000,
headers: {},
uri: '/api/v1/user/:userId',
},
id: 'tableDelete',
},
我想在url上跟一个参数,怎么实现 function onDelete(this: any, event: any, record: any) { this.dataSourceMap.tableDelete.load({ userId: record.record.id, }).then((res: any) => { }); console.log('onDelete', event, record.record); }
一般情况下有三种请求参数,比如data,params,url上直接写; 想问下这几种情况的使用,只使用了默认的params,其他都有问题