Vue implements novel chapter switching and changes the chapter cache rendered by url,

implementation effect: https://m.qidian.com/book/101.

changing url and loading new data when switching between new chapters
replaceState can do this, but here"s the problem. I found that he did not add history in the case of
returned to the previous chapter does not need to request the interface to load, the local storage did not see the loaded chapter
as long as the loaded chapter will not be loaded just change the current url, and the page return will be empty.


it loads the next chapter without deleting the previous chapter, so why reload

Menu