From 7eebd7981c1f5d2c569556d1e87f7818cef18cce Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 21 八月 2025 13:15:15 +0800 Subject: [PATCH] 1.样式修改 --- src/App.vue | 28 ++++++++++++++++------------ 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/App.vue b/src/App.vue index 462dc67..f664715 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,16 +1,20 @@ -<script> +<template> + <Splash v-if="showSplash" /> + <div v-else> + <router-view /> + </div> +</template> -export default { - onLaunch: function () { - console.log('App Launch') - }, - onShow: function () { - console.log('App Show') - }, - onHide: function () { - console.log('App Hide') - } -} +<script setup> +import { ref, onMounted } from 'vue' +import Splash from './components/Splash.vue' + +const showSplash = ref(true) +onMounted(() => { + setTimeout(() => { + showSplash.value = false + }, 5000) +}) </script> <style lang="scss"> -- Gitblit v1.9.3