The Jump problem of the same Page reuse component in vue

problem description

the environmental background of the problems and what methods you have tried

tried keepalive,. When you enter the list page for the second time, keepalive will not be able to handle it. The second way is to save the location after entering a page, or it is impossible to judge whether the user is moving forward or going back. After all, if you are going forward, it is a Mustang, and if you are going backwards, all b-a-b-a has the process of aMub,

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Nov.25,2021

can be saved using a stack. When routing is switched, enter and unstack operations


use vuex state management to save the drop-down position of the component, and call it when the route is loaded or returned. The document https://vuex.vuejs.org/zh/


has found a plug-in to solve this, vue-navigation.

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