提交 032e9b87 作者: 方治民

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

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