amis icon indicating copy to clipboard operation
amis copied to clipboard

requestAdaptor 函数中 api只有在post请求中有data属性,get请求没有

Open hotmaycold opened this issue 6 years ago • 3 comments

hotmaycold avatar Jun 22 '20 07:06 hotmaycold

get请求没参数么

RickCole21 avatar Aug 05 '20 12:08 RickCole21

get请求没参数么

  method: "get",
  "requestAdaptor": (api) => { // get请求不能对data进行编辑,但是可以先post再改成api.method = "get"
    api.data == "undifined" 
    return api;
  }

hotmaycold avatar Aug 06 '20 01:08 hotmaycold

get 本来就没有 data,改 post

nwind avatar Nov 09 '21 09:11 nwind