alibaba / alibaba/lowcode-engine
关于数据请求
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
{
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,其他都有问题
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the dataSourceMap.tableDelete.load call and the fetch configuration shown in the issue; trace how userId is handled for params, data, and URI values. No repository file or test is named, so first identify the relevant request-handling entry point and reproduce the reported forms. Done means the supported behavior is clear and the reported parameter usage works as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100