Files
emall-web/src/App.vue

31 lines
539 B
Vue
Raw Normal View History

2025-10-16 09:59:34 +08:00
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
name: 'App',
mounted() {
// 隐藏加载动画
setTimeout(() => {
const loadingContainer = document.querySelector('.loading-container');
if (loadingContainer) {
loadingContainer.style.opacity = '0';
setTimeout(() => {
loadingContainer.style.display = 'none';
}, 500);
}
}, 1500);
}
}
</script>
<style>
#app {
height: 100vh;
width: 100vw;
overflow: hidden;
}
</style>