there is such a data at the front end:
this.regions:[1,2];
this.citys:["shanghai","chongqing"];
format required by backend:
area:[
{
regions:1,
citys:"shanghai"
},
{
regions:2,
citys:"chongqing"
}
]
in that case, how to change the front end?
< hr > there is another case:
citys and regions are multiple selections, and the length may be inconsistent:
this.citys:["shanghai","chongqing","changsha","hunan"];
regions data may be small:
this.regions:[1];
what should I do if the length of the two is different?