以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  vue使用axios 发送post请求 后端空值问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=175832)

--  作者:cuicuibing
--  发布时间:2022/3/21 10:57:00
--  vue使用axios 发送post请求 后端空值问题
 Dim jo As J Object = JOb ject.Parse(e.PlainText)
提示为空值

--  作者:有点蓝
--  发布时间:2022/3/21 11:05:00
--  
使用日志跟踪一下,看看都接收了什么数据

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=175660&replyID=176042&skin=1

--  作者:cuicuibing
--  发布时间:2022/3/21 15:54:00
--  
Headers:--------------- sec-ch-ua = " Not A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99" sec-ch-ua-mobile = ?0 sec-ch-ua-platform = "Windows" Upgrade-Insecure-Requests = 1 Sec-Fetch-Site = none Sec-Fetch-Mode = navigate Sec-Fetch-User = ?1 Sec-Fetch-Dest = document Cache-Control = max-age=0 Connection = keep-alive Accept = text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Accept-Encoding = gzip, deflate, br Accept-Language = zh-CN,zh;q=0.9 Host = 127.0.0.1:9090 User-Agent = Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Headers:--------------- host=127.0.0.1 port=9090 path= HttpMethod=GET poststring= url=http://127.0.0.1:9090/
--  作者:cuicuibing
--  发布时间:2022/3/21 15:55:00
--  
不懂,没有想要得数据


--  作者:cuicuibing
--  发布时间:2022/3/21 16:02:00
--  
图片点击可在新窗口打开查看
--  作者:有点蓝
--  发布时间:2022/3/21 16:09:00
--  
HttpMethod=GET ,不是post请求。前端写了什么代码?
--  作者:cuicuibing
--  发布时间:2022/3/21 16:11:00
--  
methods:{
     submitForm(formName){
             let {name,password} = this.ruleForm;
       this.$refs[formName].validate((valid) => {
          if (valid) {
            alert(\'submit!\');
            axios({
              method: \'post\',
              url:\'aaa\',
              data:{user:name,password:password}
            }).then(res=>{
              console.log(res)
            }).catch(err=>{
              console.log(err)
            })
          } else {
            alert(\'error submit!!\');
            return false;
          }
          });
   
      //  this.$router.push("/home")
    }
  }
 
}

--  作者:有点蓝
--  发布时间:2022/3/21 16:16:00
--  
明细3楼的日志看访问的不是aaa,如果不会调试,请上传可以测试的实例