Vue-cli Why do I see that there are views directories in some people's projects?

is this used to put components? Why not just put it in the components? How is the catalogue of a large project designed? Do you have any practical examples for reference? Thank you

Sep.07,2021

views directory is used to put pages


look at personal habits, but I usually put the main page in views,components to put functional components. You can take a look at vue-element-admin,. It should give you some inspiration. https://github.com/PanJiaChen.


from an engineering point of view, the benefits of using views components `common` to divide directories:

1. ``
2.  ,
3. who 
Menu