axios 设置 content-type

Blade 未结 1 630
三岁
三岁 剑者 2021-01-19 09:33


    设置 headers   content-type   不管用


    

export const SetPrint = (printname) => {  // 检查打印插件是否安装

  return request({

    headers: {

      "Content-Type""application/x-www-form-urlencoded",

    },

    url'/print/PRINT/SetPrint',

    method'post',

    printname:printname

  })

}


1条回答
  • 2021-01-19 10:40

    请求头就是这样设置的,但是你没用进一步详细描述你说的“不行”是哪一种,所以没法帮你判断

    image.png

    0 讨论(0)
提交回复