Skip to content

关于数据请求 #3134

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions