M
M
mrdragon90002019-06-02 10:04:12
Vue.js
mrdragon9000, 2019-06-02 10:04:12

Vuejs Is it possible to return to the previous page with the variables that were on it?

Vuejs works in history mode.
There is a page with a list of users on the site. The list has filters. They are an array in the current component

data: () => {
      return {
        users: {
          data: [],
          current_page: 1
        },

        filter: {
          user: '',
          minBalance: 0,
          maxBalance: 1000000,
          hasOffer: ''
        }
      }
    },

I specified some filters. I went to the page of one of the found users (a separate page with information), after which I want to return to the page with the list so that these filters are set there again. How to implement it, that the information about the filters is saved on the previous page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kr_ilya, 2019-06-02
@mrdragon9000

vuex store

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question