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;
            }
          }
        });
相关推荐
鹏多多2 小时前
Flutter输入框TextField的属性与实战用法全面解析+示例
android·前端·flutter
2501_916008893 小时前
iOS 开发者工具全景图,构建从编码、调试到性能诊断的多层级工程化工具体系
android·ios·小程序·https·uni-app·iphone·webview
Winter_Sun灬3 小时前
CentOS 7 编译安卓 arm64-v8a 版 OpenSSL 动态库(.so)
android·linux·centos
柯南二号3 小时前
【大前端】【Android】用 Python 脚本模拟点击 Android APP —— 全面技术指南
android·前端·python
龚礼鹏4 小时前
图像显示框架六——SurfaceFlinger的初始化以及任务调度(基于Android 15源码分析)
android
壮哥_icon4 小时前
Android 使用 PackageInstaller 实现静默安装,并通过 BroadcastReceiver 自动重启应用
android·gitee·android-studio·android系统
ao_lang4 小时前
MySQL的存储过程和触发器
android·数据库·mysql
WebCsDn_TDCode4 小时前
Android Studio使用教程
android·android studio
小蜜蜂嗡嗡4 小时前
Android studio配置忽略文件
android·ide·android studio
颜颜yan_4 小时前
DevUI自定义开发实践:从零开始构建自定义组件和插件
android·java·数据库