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;
            }
          }
        });
相关推荐
limingade1 小时前
手机转SIP-手机做中继网关-落地线路对接软交换呼叫中心
android·智能手机·手机转sip·手机做sip中继网关·sip中继
RainbowC01 小时前
GapBuffer高效标记管理算法
android·算法
程序员码歌2 小时前
豆包Seedream4.0深度体验:p图美化与文生图创作
android·前端·后端
、花无将3 小时前
PHP:下载、安装、配置,与apache搭建
android·php·apache
shaominjin1234 小时前
Android 约束布局(ConstraintLayout)的权重机制:用法与对比解析
android·网络
我命由我123455 小时前
Android 对话框 - 对话框全屏显示(设置 Window 属性、使用自定义样式、继承 DialogFragment 实现、继承 Dialog 实现)
android·java·java-ee·android studio·android jetpack·android-studio·android runtime
怪兽20146 小时前
请例举 Android 中常用布局类型,并简述其用法以及排版效率
android·面试
应用市场6 小时前
Android Bootloader启动逻辑深度解析
android
爱吃水蜜桃的奥特曼6 小时前
玩Android Harmony next版,通过项目了解harmony项目快速搭建开发
android·harmonyos
shaominjin1236 小时前
Android 中 RecyclerView 与 ListView 的深度对比:从设计到实践
android