I encountered a problem when I was working on a project, that is, two values were passed from the background, which was the order of the two p's. I needed to dynamically render HTML based on these two values, and if the order in the background changed, my page would also change. Follow the changes. (ps: The data in p is also dynamic.)
I hope the experts can tell me how to do it. I would be very grateful.
Put the two values into the array and use v-for rendering to ensure the order. Array is an ordered data structure.
Then every time you pull data, just update this array.
Remember that Vue operates on data rather than on the DOM.