// Save in `store.state` and `localStorage.setItem`, and make it Vue reactive
window.store.set("item", item);
// Get from `store.state` or `localStorage.getItem`
window.store.get("item");
// Get from `store.state` only (ignore localStorage)
window.store.state.item;