When you use vue-router to push multiple times with different parameters to a page, the request does not trigger the problem again.

when you click on the video title list, you will jump to the video details page and use this.$router.push ({path:"/ videoDetail", query: {videoId: row.videoData.videoFormId}}); to jump, and multiple tabs will be opened. However, when you open it for the second time, a request for details will not be sent. The request will be sent in the life cycle of mounted. Is there any way to use different data on different pages?

Apr.07,2021

use the watch attribute to monitor router changes, and then execute the function


is keep-alive used? If used, the page component will execute a mounted, request function that can be placed in beforeRouteEnter or activated

Menu