A
A
Artem Prokhorov2021-05-27 18:47:22
Vue.js
Artem Prokhorov, 2021-05-27 18:47:22

Is it possible in Vue js to catch a page reload, which was made through the browser button (circle on the top left)?

It is through her.

I need the client to stay on the same page in the table after reloading the page with pagination enabled.
When I make a transition on the next or prev buttons, everything is fine, or when, for example, I create a new record in the table after rewriting the table from the back, I still remain valid on page 3, because when I request new data, I add a variable that stores the current page (with rest I work).

But is it possible to save this very variable if the reload is carried out precisely through the browser, let's say save it before closing the tab itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin B., 2021-05-27
@kotcich

Add page number to query parameter and get it after reload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question