add auto load .env

This commit is contained in:
2026-09-10 13:53:20 +02:00
parent d6cb4078bc
commit 9016fb7baf
13 changed files with 532 additions and 28 deletions
+1 -3
View File
@@ -4,9 +4,7 @@
{{ t('app.hello') }}
</p>
<Suspense>
<RouterView />
</Suspense>
<RouterView />
</template>
<script setup>
+9 -3
View File
@@ -2,15 +2,21 @@
<p>{{ t('app.world') }}</p>
<p v-for="value in j">
{{ value }}
</p>
</p>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n'
const { t } = useI18n();
const res = await fetch("/php/notifications.php")
const j = await res.json();
const j = ref([]);
onMounted(async () => {
const res = await fetch("/php/notifications.php")
j.value = await res.json();
});
</script>