For the existing requirements, we use v-for to loop an interface in vue. We want to loop the two major categories into two lists at one time to show how to implement them.

an interface is distinguished according to the parameter type=1 or = 2, and there are several of each of the two types. How do you want to loop directly into two ul lists through a v-for? You can share an index, to facilitate other operations. If it is divided into two variables and looped separately, it will be more troublesome later

.
Feb.28,2021

define even variable APIs. After receiving data, Filter assigns two ul loops to each

.
Menu