ElementUI的el-date-picker在type为daterange和dates时,返回的是Proxy对象数组,实际传参时会导致后端不能识别而提示错误,因此需要转成普通数组,转换方法:
JSON.parse(JSON.stringify(this.newlist));
或
async aFun(){
let res=await 变量名
}
参考:
https://blog.csdn.net/weixin_45599105/article/details/125433609
ElementUI的el-date-picker在type为daterange和dates时,返回的是Proxy对象数组,实际传参时会导致后端不能识别而提示错误,因此需要转成普通数组,转换方法:
JSON.parse(JSON.stringify(this.newlist));
或
async aFun(){
let res=await 变量名
}
参考:
https://blog.csdn.net/weixin_45599105/article/details/125433609