try to make a project, using vue+webpack, project will have a lot of pages, do not know how to develop
about pages:
- the number of pages is very large, ranging from hundreds to hundreds;
- almost every page is a separate page, and of course there is a reuse part;
- the main page is a menu page. Clicking on the menu item will display the subpage in the space of the current page and operate in it.
I don"t know how to develop:
- components, that makes the page
.vue
seems easiest, but it feels like there are two problems:
a. Will it cause performance problems if there are too many component, switches on the same page? component seems to rebuild one for each switch.
b. Because there are so many pages, will initialization be very slow, and users may only use fewer parts; - multiple entrances. Feel that there will be problems:
a. Because there are so many pages, the flexibility of the multi-entry mode will be reduced. After all, each entry has to be configured once;
b. Use hierarchical relationships to create fewer multiple entries, that is, every 10 menus are in groups, and only 10 entries are created, but you don"t know the practicability of this model;
c. Will this have an impact on the use of common modules? - using iframe,iframe seems more manageable, but using iframe in vue-cli seems unfriendly and not easy to reference.
beginners, it may be a little obvious, but I would like to point out if there is a better plan.