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

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-1e4d753-44f45.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-1e4d753-44f45.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?