This commit is contained in:
2025-09-03 16:32:13 +02:00
parent c05d98f333
commit b96a1c0065

View File

@ -49,18 +49,18 @@
</template>
<script setup>
definePageMeta({
/*definePageMeta({
// This is an example of inline middleware
middleware: async nuxtApp => {
const host = useRequestURL().host
const res = await $fetch('http://localhost/api/status')
const res = await $fetch('https://' + host + '/api/status')
if (res.status === 'ready') {
navigateTo(host, { external: true })
return false;
}
return true
},
})
})*/
import { ref, onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'