Pass the parameter through query

Pass the parameter through params

The query and paramsSummary of the differences:

  1. Params parameters must be passed in named route mode.
  2. Params pass parameter, will not display in the address bar, will be saved in memory, refresh will be lost, can be used with local storage;
  3. Query parameters are displayed in the address bar and will not be lost.