lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

关于数据请求

Open zhangleinice opened this issue 10 months ago • 0 comments

  {
    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,其他都有问题

zhangleinice avatar Mar 26 '25 03:03 zhangleinice