how to pass data and header both in axios get request?

前端 未结 0 1030
闹比i
闹比i 2020-11-29 20:31
 let res = await axios({
    method: \'get\',
    url: url1,
    params: params,  
   /*  headers: { \'Authorization\': "Bearer `${token}`" } */
  });


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题