血翼残飞

导航

vue+springboot 传list

@PostMapping(value = "/aa")
    public Result<?> aa(@RequestBody List<Map<String, Object>> list) {

        return Result.ok();
    }

  

let dataSource = [];
postAction(this.url, this.dataSource).then(res => { if (res.success) { } })

 

 @PostMapping(value = "/aa")
    public Result<?> aa(@RequestBody Map<String, Object> map) {

        return Result.ok();
    }

  

postAction(this.url, {'list':this.dataSource}).then(res => {
          if (res.success) {
            
          } else {
            
        })

  

posted on 2023-04-18 16:58  血翼残飞  阅读(124)  评论(0编辑  收藏  举报