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 () => {
|
onMount(async () => {
|
||||||
LoadFromLocalCache();
|
LoadFromLocalCache();
|
||||||
console.log(`loaded: ${JSON.stringify(priority)}`);
|
console.log(`onMount: ${JSON.stringify(priority)}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
function hasDuplicateColors() {
|
function hasDuplicateColors() {
|
||||||
|
@ -104,11 +104,10 @@
|
||||||
let pri = window.sessionStorage.getItem('priority');
|
let pri = window.sessionStorage.getItem('priority');
|
||||||
if (pri) {
|
if (pri) {
|
||||||
// $priority = JSON.parse(pri);
|
// $priority = JSON.parse(pri);
|
||||||
priority.surfers = JSON.parse(pri.surfers);
|
console.log(`load cache: ${pri}`);
|
||||||
priority.round = JSON.parse(pri.round);
|
priority = JSON.parse(pri);
|
||||||
priority.surfersCount = JSON.parse(pri.surfersCount);
|
|
||||||
start = JSON.parse(window.sessionStorage.getItem('start'));
|
start = JSON.parse(window.sessionStorage.getItem('start'));
|
||||||
console.log(`load cache: ${JSON.stringify(priority)} - ${start}`);
|
console.log(`loaded cache: ${JSON.stringify(priority)} - ${start}`);
|
||||||
} else {
|
} else {
|
||||||
console.log(`no cache found`);
|
console.log(`no cache found`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue