import Vue from "vue";
Vue error: the template root requires exactly one element
See the following figure for details:
error information in vscode
error information in node
Vue only allows one root node in the template.
Add a <div> tag to <template>, after that all the components will be added to <div> to solve the problem.
When doing the project, I encountered some picture display problems
1. The assets file under SRC of the local image cannot be loaded
Solution: use require
2. Network picture, visit 403
Solution: add the tag
< meta name="referrer" content="no-referrer" />
in the index.html file