WebIndex/app.vue

24 lines
545 B
Vue
Raw Normal View History

2024-11-17 11:45:08 +08:00
<script setup lang="ts">
const loading = ref<HTMLDivElement | null>(null)
2024-12-18 08:42:00 +08:00
const {$mitt} = useNuxtApp()
2024-11-17 11:45:08 +08:00
2024-12-18 08:42:00 +08:00
$mitt.on('startLoading', on => {
2024-11-17 11:45:08 +08:00
if (on) {
loading.value?.classList.remove('stop')
removeMobileTopColor()
} else {
loading.value?.classList.add('stop')
setMobileTopColor()
}
})
</script>
<template>
<div ref="loading" class="loading"></div>
<div class="relative flex min-h-screen flex-col overflow-hidden bg-blue-50">
<nav-bar/>
2024-12-01 13:09:44 +08:00
<nuxt-page/>
2024-11-17 11:45:08 +08:00
<footer-main/>
2024-12-01 13:09:44 +08:00
<alert-notification/>
2024-11-17 11:45:08 +08:00
</div>
</template>