提交 032e9b87 作者: 方治民

Merge branch '3.x' of https://gitlab.yiring.com/basic/basic-uniapp-v3 into examples

<script setup lang="ts"> <script setup lang="ts">
// import * as Push from '@/utils/push' // import * as Push from '@/utils/push'
import { isDevMode } from '@/utils/env'
onLaunch(() => { onLaunch(() => {
console.log('App Launch') console.log('App Launch')
...@@ -9,6 +10,15 @@ ...@@ -9,6 +10,15 @@
// 监听在线消息 // 监听在线消息
// Push.listen() // Push.listen()
// FIXED: 开发模式,关闭启动页,防止调试内部页面时无法进入的问题
// #ifdef APP-PLUS
if (isDevMode) {
setTimeout(() => {
plus.navigator.closeSplashscreen()
}, 500)
}
// #endif
}) })
onShow(() => { onShow(() => {
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
"versionCode" : 10000, "versionCode" : 10000,
"transformPx" : false, "transformPx" : false,
"locale" : "zh-Hans", "locale" : "zh-Hans",
"vueVersion" : "3",
/* 5+App特有相关 */// 配置文件详细说明 /* 5+App特有相关 */// 配置文件详细说明
// https://uniapp.dcloud.net.cn/collocation/manifest-app.html#full-manifest // https://uniapp.dcloud.net.cn/collocation/manifest-app.html#full-manifest
"app-plus" : { "app-plus" : {
"usingComponents" : true, "usingComponents" : true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3, "compilerVersion" : 3,
"vueVersion" : "3",
"splashscreen" : { "splashscreen" : {
"alwaysShowBeforeRender" : false, "alwaysShowBeforeRender" : false,
"autoclose" : false, "autoclose" : false,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论