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;
            }
          }
        });
相关推荐
常利兵8 分钟前
Android 开发秘籍:用Tint为Icon动态变色
android
奔跑吧 android44 分钟前
【车载audio】【CarAudioService 05】【车载 Android 系统调试深度指南:解析 dumpsys car_service】
android·audio·audioflinger·aosp15·车载音频·车载audio·car_service
shuangrenlong1 小时前
androidstudio gradle文件报红
android
Digitally1 小时前
如何通过蓝牙将 iPhone 上的照片传输到 Android
android·ios·iphone
常利兵1 小时前
Android Intent.setAction失效报错排查与修复全方案
android
低调小一1 小时前
RecyclerView 缓存与复用机制:从一次滑动讲明白(2026 版)
android·recyclerview
耶叶1 小时前
kotlin的修饰符
android·开发语言·kotlin
l1t1 小时前
在Android设备上利用Termux安装llama.cpp并启动webui
android·llama
浩宇软件开发1 小时前
基于Android天气预报应用开发APP
android·java·android studio·android开发
毕设源码-郭学长1 小时前
【开题答辩全过程】以 基于Android的电子日记APP的设计与实现为例,包含答辩的问题和答案
android