Vue2:

It is not recommended to use v-for and V-if on the same element. V-for has a higher priority than V-if

Document address: cn.vuejs.org/v2/guide/li…

Vue3:

It is also not recommended to use v-for and V-if on the same element, but v-if has a higher priority than V-for, and errors may be reported in some scenarios

Address: document v3.cn.vuejs.org/guide/list….