美文网首页
在单个接口里放token

在单个接口里放token

作者: 布呐呐aa | 来源:发表于2020-06-10 10:09 被阅读0次
  axios.post(
          `http://gzh.lnsjjjc.gov.cn/api/web/exam/answer`,
          {
            "content": paramsObj
          },
          {
            headers:{
              'token':localStorage.getItem('usertoken')
            },
          },
        ).then(success=>{
          console.log(success)
          console.log('获取答题对错')
          this.answerObject = success.data.data
        })

相关文章

网友评论

      本文标题:在单个接口里放token

      本文链接:https://www.haomeiwen.com/subject/szjutktx.html