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;
            }
          }
        });
相关推荐
xiangxiongfly915几秒前
Android CoordinatorLayout+AppBarLayout+CollapsingToolbarLayout实现折叠置顶效果
android·折叠
柿蒂29 分钟前
从if-else和switch,聊聊“八股“的作用
android·java·kotlin
Jerry2 小时前
Compose 5 个简短动画,让您的应用脱颖而出
android
PenguinLetsGo2 小时前
你的App是否有出现过幽灵调用?
android
没有了遇见3 小时前
Android ViewPager2 嵌套 RecyclerView 滑动冲突解决方案
android
咖啡の猫3 小时前
Android开发-选择按钮
android·gitee
火柴就是我4 小时前
android 以maven的方式 引入本地的aar
android
过-眼-云-烟4 小时前
新版Android Studio能打包但无法run ‘app‘,编译通过后手机中没有安装,顶部一直转圈
android·ide·android studio
hedalei5 小时前
android14 硬键盘ESC改BACK按键返回无效问题
android·android14·esc·back按键
hcgeng5 小时前
android 如何判定底部导航栏显示时 不是键盘显示
android·底部导航·导航高度