save to cache OK
This commit is contained in:
parent
7fbfef66f0
commit
ea776f13c2
2 changed files with 4 additions and 5 deletions
Binary file not shown.
|
@ -27,7 +27,7 @@
|
|||
|
||||
onMount(async () => {
|
||||
LoadFromLocalCache();
|
||||
console.log(`loaded: ${JSON.stringify(priority)}`);
|
||||
console.log(`onMount: ${JSON.stringify(priority)}`);
|
||||
});
|
||||
|
||||
function hasDuplicateColors() {
|
||||
|
@ -104,11 +104,10 @@
|
|||
let pri = window.sessionStorage.getItem('priority');
|
||||
if (pri) {
|
||||
// $priority = JSON.parse(pri);
|
||||
priority.surfers = JSON.parse(pri.surfers);
|
||||
priority.round = JSON.parse(pri.round);
|
||||
priority.surfersCount = JSON.parse(pri.surfersCount);
|
||||
console.log(`load cache: ${pri}`);
|
||||
priority = JSON.parse(pri);
|
||||
start = JSON.parse(window.sessionStorage.getItem('start'));
|
||||
console.log(`load cache: ${JSON.stringify(priority)} - ${start}`);
|
||||
console.log(`loaded cache: ${JSON.stringify(priority)} - ${start}`);
|
||||
} else {
|
||||
console.log(`no cache found`);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue