22 lines
358 B
Vue
22 lines
358 B
Vue
<template>
|
|
<p>{{ t('app.world') }}</p>
|
|
<p v-for="value in j">
|
|
{{ value }}
|
|
</p>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { onMounted, ref } from 'vue';
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
const { t } = useI18n();
|
|
|
|
const j = ref([]);
|
|
|
|
onMounted(async () => {
|
|
const res = await fetch("/php/notifications.php")
|
|
j.value = await res.json();
|
|
});
|
|
|
|
|
|
</script> |