gaoluyang
4 天以前 025e46e11cb2962fd7692adfa401333758cc779b
src/App.vue
@@ -1,16 +1,19 @@
<script>
<template>
   <Splash v-if="showSplash" />
   <div v-else>
      <router-view />
   </div>
</template>
<script setup>
import { ref, onMounted } from 'vue'
import Splash from './components/Splash.vue'
export default {
   onLaunch: function () {
      console.log('App Launch')
   },
   onShow: function () {
      console.log('App Show')
   },
   onHide: function () {
      console.log('App Hide')
   }
}
const showSplash = ref(true)
onMounted(() => {
   setTimeout(() => {
      showSplash.value = false
   }, 5000)
})
</script>
<style lang="scss">