feat: do not initiate requests when the ChangelogModal is not open

This commit is contained in:
Shirasawa 2025-09-18 11:50:00 +08:00 committed by GitHub
parent b55a38ee97
commit 7735a04783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,10 +19,11 @@
let changelog = null;
onMount(async () => {
const res = await getChangelog();
changelog = res;
});
const init = async () => {
changelog = await getChangelog();
};
$: show && init();
</script>
<Modal bind:show size="xl">