mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-11 12:31:12 +01:00
parent
05a9fa4559
commit
4ec7572a10
1 changed files with 11 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
|||
import Check from '../../components/Check.svelte';
|
||||
import Checkbox from '../../components/Checkbox.svelte';
|
||||
import { getAccountPrefix } from '../../stores/account';
|
||||
import { readSave, updateSave } from '../../stores/saveManager';
|
||||
import { readSave, updateSave, fromRemote } from '../../stores/saveManager';
|
||||
import Button from '../../components/Button.svelte';
|
||||
import Icon from '../../components/Icon.svelte';
|
||||
import Select from '../../components/Select.svelte';
|
||||
|
@ -307,15 +307,24 @@
|
|||
}
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
async function process() {
|
||||
await readLocalData();
|
||||
parseCategories();
|
||||
changeCategory('0', 0, true);
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
process();
|
||||
|
||||
locale.subscribe((val) => {
|
||||
changeLocale(val);
|
||||
});
|
||||
});
|
||||
|
||||
$: if ($fromRemote) {
|
||||
console.log('update from google drive');
|
||||
process();
|
||||
}
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
|
Loading…
Reference in a new issue