P粉0372155872023-08-30 15:17:17
What’s the point of reloading the page? If you want to display updated data on the user interface, Vue will do it for you automatically. So you don't need to do this.
Alternatively, if page reloading is necessary for you, you can put the prompt message on the root page and call it from the current subpage. In this case, the message will be displayed regardless of whether you reload the page.