有enterpriseId:[2,3]和shopId:[1,2],要转换成下面这种
{
"enterpriseId": 2,
"shopId": 1
},
{
"enterpriseId": 2,
"shopId": 2
}
]
目前写法如下得到——[{enterpriseId: 2, shopId: 1}]
data: [
{
enterpriseId: parseInt(_vue.tempUser.enterpriseId.toString()),
shopId: parseInt(_vue.tempUser.shopId.toString()) ,
}
]