src/App.vue
@@ -1,8 +1,8 @@ <template> <Splash v-if="showSplash" /> <div v-else> <view v-else> <router-view /> </div> </view> </template> <script setup> import { ref, onMounted } from "vue"; @@ -10,13 +10,14 @@ import { confirmMessage } from "@/api/login.js"; const showSplash = ref(true); onMounted(() => { setTimeout(() => { showSplash.value = false; }, 5000); // 初始化推送服务 initPushService(); // 初始化推送服务,暂时注释,客户需要打开 // initPushService(); }); // 初始化推送服务(uni-push 1.0) const initPushService = () => {