RT, I use the following function to store the input in the input box into an array format
this.whitelists = this.whitelists.map(x =>({
          user_ids: x.user_ids.split(",").filter(x => x.trim()).map(x => Number(x)),
          treatment: x.treatment,
        }));the original format is as follows
{
    "name":"test",    
    "whitelists":[
        {
            "user_ids":"10, 20",
            "treatment":"1"
        }
    ],
    "id":1
}the required format is as follows
{
    "name":"test",    
    "whitelists":[
        {
            "user_ids":[10, 20],
            "treatment":"1"
        }        
    ],
    "id":1
}I"ve tested it, and if you comment out the above function, you can submit it immediately after modification, without the need to manually refresh the page.
Please give me some advice. I now need to change the input into an array format. At the same time, I also need to submit it immediately after modification. I don"t have to refresh the page manually. What should I do? Thank you
