forked from urvishpatelce/lxd-app
fix
This commit is contained in:
@ -49,18 +49,18 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
definePageMeta({
|
/*definePageMeta({
|
||||||
// This is an example of inline middleware
|
// This is an example of inline middleware
|
||||||
middleware: async nuxtApp => {
|
middleware: async nuxtApp => {
|
||||||
const host = useRequestURL().host
|
const host = useRequestURL().host
|
||||||
const res = await $fetch('http://localhost/api/status')
|
const res = await $fetch('https://' + host + '/api/status')
|
||||||
if (res.status === 'ready') {
|
if (res.status === 'ready') {
|
||||||
navigateTo(host, { external: true })
|
navigateTo(host, { external: true })
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
})
|
})*/
|
||||||
|
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { useRouter, useRoute } from 'vue-router'
|
import { useRouter, useRoute } from 'vue-router'
|
||||||
|
|||||||
Reference in New Issue
Block a user