This is how you can go about saving data to localstorage.

To store:

<script setup>
localStorage.setItem(variableName, JSON.stringify(object));

To retrieve:

let pagesStore = JSON.parse(variableName);

 

1GNsWa_EZdw