Refresh the current page commonly used method is:
The first method is:
`window.reload();`
The second method is:
this.$router.go(0);
Both methods can refresh the current surface, but refresh the moment, there will be a moment flashes blank page; so the user experience is not good.
Today to introduce a third method:
Use provice
and inject
incorporated methods. This method really effective, there will be no flashing appears blank. as follows:
At the outset of this method in App.vue components, the wording is as follows:
Then you want to refresh the page components of the current page to call this method: