From adeb8b768926ed50a3fb0857f366d6a0308d2cc0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 29 八月 2025 17:45:57 +0800
Subject: [PATCH] 修改组件

---
 src/App.vue |   34 ++++++++++++++++++++++------------
 1 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 462dc67..a2d62ff 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,19 +1,29 @@
-<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">
+// 浣跨敤 @use 鏇夸唬 @import锛堝鏋渦View-plus鏀寔鐨勮瘽锛�
+// 娉ㄦ剰锛氱敱浜巙View-plus鍙兘杩樹笉鏀寔@use锛岃繖鍙兘浼氬鑷存牱寮忛棶棰�
+// @use "uview-plus/index.scss";
+// @use '@/static/scss/index.scss';
+
+// 鏆傛椂淇濈暀@import锛岀洿鍒皍View-plus鏇存柊
 @import "uview-plus/index.scss";
 @import '@/static/scss/index.scss';
 </style>
\ No newline at end of file

--
Gitblit v1.9.3