[Vuejs]-How to save the ids from one form in one page to another intermediate table

0👍

If you could provide us your code sample you would get more accurate answers.

  • One way is to use APis to POST data to server and then GET them back in another page.

  • The other solution is to store your data in LocalStorage and then use the stored data in another place.

  • if you want to save data as objects here is the way :

localStorage stores key-value pairs. So to store a entire javascript object we need to serialize it first (with JSON.stringify, for example):

localStorage.setItem(‘user’, JSON.stringify(user));

Then to retrieve it from the store and convert to an object again:

var user = JSON.parse(localStorage.getItem(‘user’));

If we need to delete all entries of the store we can simply do:

Leave a comment