local.mounted = function (component) {
for (let id in localStorage) {
if (id === 'user' || id === 'token' || id === 'char') continue; // `showIcon` is there somehow
let item = localStorage.getItem(id);
component.addItem(JSON.parse(item));
}
};
in kl-items.method.js
Instead of directly using id as key, we should prefix it with something, like so item-${id}, eg item-re1231dq12
it is because of
in
kl-items.method.js
Instead of directly using id as key, we should prefix it with something, like so
item-${id}
, egitem-re1231dq12