mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-03-13 11:18:28 +01:00
Fix farmable today on home
This commit is contained in:
parent
39bb15d45e
commit
28bec625a2
1 changed files with 13 additions and 2 deletions
|
@ -7,11 +7,11 @@
|
|||
import Icon from '../../components/Icon.svelte';
|
||||
import { characters } from '../../data/characters';
|
||||
import { weaponList } from '../../data/weaponList';
|
||||
import { getCurrentDay } from '../../stores/server';
|
||||
import { getCurrentDay, server } from '../../stores/server';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
const today = getCurrentDay();
|
||||
let today = getCurrentDay();
|
||||
let characterItems = {};
|
||||
let weaponItems = {};
|
||||
|
||||
|
@ -46,9 +46,20 @@
|
|||
}
|
||||
|
||||
onMount(async () => {
|
||||
const ubsub = server.subscribe(async () => {
|
||||
today = getCurrentDay();
|
||||
parseTalentBook();
|
||||
await tick();
|
||||
dispatch('done');
|
||||
});
|
||||
|
||||
parseTalentBook();
|
||||
await tick();
|
||||
dispatch('done');
|
||||
|
||||
return () => {
|
||||
ubsub();
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue