There is a problem with vue.js, that is, the problem of page refresh.

suppose a vue-cli single-page application has parent and child components, as well as non-parent-child components. When I click on a child component, that is, by adding a route to a child component (or a non-parent component), the problem arises. What if the page stays in the current child component (or other component that is not the parent component), and after the page is refreshed, the data from the parent component in the child component will not be reloaded? I found that this problem is common in the projects I participated in, including browser fallback events. I have solved it through keepalive dynamic components and dynamic routing, but the solution is not very satisfactory. I have thought about using watch to listen for routes.

Mar.03,2021

generally, communication in this component can use the state manager vuex,. If it is a route jump, you can use dynamic routing to pass data


did the landlord solve the problem? I encountered the same problem

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c22bf8-335fc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c22bf8-335fc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?