[vue/no-multiple-template-root] The template root requires exactly one element.

Project scenario:

March 2022 intellectual property module migration component


Problem description

Black screen and error report:

[vue/no-multiple-template-root] The template root requires exactly one element.

Cause analysis:

Only one root node is allowed in the template


Solution:

Add a div tag to the template and add all components to the div tag.

Read More: