NutzCN Logo
问答 js post 为什么收不到数据
发布于 2794天前 作者 menglinxi 1934 次浏览 复制 上一个帖子 下一个帖子
标签:
this.axios.post('/platform/tracking/material/addDo', {
        materType: 'img',
        matername: this.imgOriginalityName,
        appid: this.$route.query.appId,
        vimg1: this.vimg1,
        vimg2: this.vimg2
      }).then((result) => {
        let data = result.data
        if (!data.code) {
          this.$message.success('添加成功')
          this.imgOriginalityName = ''
          this.vimg1 = ''
          this.vimg2 = ''
        } else {
          this.$message.error('添加失败,请重试')
        }
        this.imgDisabled = false
      }).catch((err) => console.error(err))

Reqplayload
{materType: "img", matername: "222", appid: "23",…}
appid
:
"23"
materType
:
"img"
matername
:
"222"
vimg1
:
"http://192.168.1.111:8080/materialimg/23/3ajusf7lumiiapts2b7h3rkfij.jpg"
vimg2
:
"http://192.168.1.111:8080/materialimg/23/vmr2cgnsp2hf1onfpu6c08n6ta.jpg"
添加回复
请先登陆
回到顶部