Fix the issue where useSettings does not work in SSR mode.

This commit is contained in:
Rafi
2023-04-06 16:07:46 +08:00
parent 82c1811034
commit 8a9b705b99
5 changed files with 23 additions and 20 deletions

View File

@@ -1,3 +1,12 @@
<script setup>
onNuxtReady(() => {
fetchSystemSettings()
// api key
const apiKey = useApiKey()
apiKey.value = getStoredApiKey()
})
</script>
<template>
<NuxtLayout>
<NuxtLoadingIndicator />