gaoluyang
2025-08-06 6abe22fc75b115d2a68103a4d8b24d0815a016f8
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">