add auto load .env
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user