now
switching between different records will have different arrays, such as
I think of two methods
(1) I first get five types of records through the interface, put them in five arrays of data, and assign values to the arrays to be rendered by clicking
(2) when I click, I call the API to get the corresponding data, and then assign values to the array to be rendered
which plan is better, ladies and gentlemen?