as shown in the figure, I have header
and footer
two common components, which are introduced in app.vue. Now there is a problem that when I refresh the page, the code in router-view
will be unloaded and reloaded, but header
and footer
in app.vue will not be unloaded
as a result, when my page is refreshed, there will be a short time when there is only header and footer on the whole page
I know that introducing header and footer in each component, but not in app.vue, can solve this problem, but I don"t think it"s a good idea to introduce header and footer in each component. For example, if there are dozens of pages, you can"t introduce each one. This should not be the right way to deal with it.