message“: “CSRF token mismatch


tableData,noticeData 是两个长二维数组

javascript 复制代码
        $.ajax({
          url: "/admin/samproofing/confirmPieces",
          type: "POST",
          data: {
            "ym": ym1,
            "papertype":paper_type,
            "person_data": that.tableData,
            "notice_data": that.noticeData,
            "_token":'{{csrf_token()}}'
          },
          dataType:'json',
          success: function (res) {
            if(res.code==1){
              //that.tableData = res.data;
              //打样通知单data
              // that.noticeData = res.data;
            }
          }
        });

改成下面这样就不会了!

javascript 复制代码
        $.ajax({
          url: "/admin/samproofing/confirmPieces",
          type: "POST",
          data: {
            "ym": ym1,
            "papertype":paper_type,
            "person_data": JSON.stringify(that.tableData),
            "notice_data": JSON.stringify(that.noticeData),
            "_token":'{{csrf_token()}}'
          },
          dataType:'json',
          success: function (res) {
            if(res.code==1){
              //that.tableData = res.data;
              //打样通知单data
              // that.noticeData = res.data;
            }
          }
        });
相关推荐
StarShip6 分钟前
Android View框架概览
android·计算机图形学
愤怒的代码6 分钟前
解析Android内存分析的指标
android·app
summerkissyou198710 分钟前
android-hardware/interfaces/automotive和hardware/libhardware/include/hardware区别
android
Evan芙37 分钟前
mysql二进制部署以及多实例部署
android·数据库·mysql
走在路上的菜鸟1 小时前
Android学Dart学习笔记第二十三节 类-扩展类型
android·笔记·学习·flutter
百***78752 小时前
【技术教程】3步极速接入GPT-5.1:零门槛体验多模态AI能力
android·java·人工智能·gpt·opencv
走在路上的菜鸟2 小时前
Android学Dart学习笔记第二十一节 类-点的简写
android·笔记·学习·flutter
QQ12958455043 小时前
ThingsBoard-修改Android APP应用程序名和描述
android·物联网·iot
代码代码快快显灵3 小时前
Android项目架构深度解析
android
丐中丐9993 小时前
一个Binder通信中的多线程同步问题
android