WebIndex/app.vue
2025-01-23 01:51:02 +08:00

31 lines
644 B
Vue

<script setup lang="ts">
const loading = ref<HTMLDivElement | null>(null),
{ $mitt } = useNuxtApp()
$mitt.on('startLoading', (on) => {
if (on) {
loading.value?.classList.remove('stop')
removeMobileTopColor()
}
else {
loading.value?.classList.add('stop')
setMobileTopColor()
}
})
</script>
<template>
<div
ref="loading"
class="loading"
>
<logo-text-logo-with-index-row class="h-12 lg:h-[72px] fill-gray-600" />
</div>
<div class="relative flex min-h-screen flex-col overflow-hidden bg-blue-50">
<nav-bar />
<nuxt-page />
<footer-main />
<alert-notification />
</div>
</template>