the effect you want to achieve is like this: after entering the page, get the data to the page through the interface, save it, then exit the page, then re-enter the page, and then merge the data re-obtained from the page with the data saved last time. You can enter this page many times, and the data will be merged together, so you want to store it through localStorage.
enter the page, call the API, and request the data to be stored in list, and stored in localStorage:
localStorage.setItem("array", JSON.stringify(list));
then when you enter the page for the second time, the data of the second trip to Qingdao overwrites the data of the first time, which does not achieve the effect of merging. So it"s a bit of a mess, how do you need to modify it, or is there any other way to achieve it? I"m much obliged!