after refreshing the page, only the parameters of the index received by the parameter id, are lost. What"s going on.
after refreshing the page, only the parameters of the index received by the parameter id, are lost. What"s going on.
because there is no : index
parameter in your routing configuration. You can pass extra parameters when you click on the link, and the refresh page vue-router will only get the parameters from the current url according to your routing configuration.
Previous: React Cannot call a class as a function