Home > other >  The second <the router - the view>, his father page reloads
The second <the router - the view>, his father page reloads

Time:12-24


Using the two layer & lt; The router - view> , on the second page, the code is shown below:


<script>
.
Mounted () {
The console. The log (' into this page ')
}
</script>

Cyclic click AAAAA and BBBBB two links, each time to reload the current page, namely the console. The log (' into this page ') will be performed, screenshots are as follows:

In a layer of & lt; The router - view> Will not be reloaded, the parent page, could you tell me why every time this page will be reloaded?

CodePudding user response:

Know the reason, is another place code problem, don't bother you, thank you.

CodePudding user response:

Your second router - the view is the need to cache is
  • Related