From 36bba2c6ce53e14ecd862b63d67fc14679497320 Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Thu, 24 Oct 2024 15:56:12 +0800 Subject: [PATCH] fix --- src/App.vue | 3 +++ src/pages.json | 56 +++++++++++++++++++++++++++++++++++--------------- 2 files changed, 43 insertions(+), 16 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8df83b7..506cd68 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,6 +33,7 @@ export default { url: "/pages/index/index?id=" + state.id + "&pid=" + state.pid, success: () => { loading.value = false; + plus.navigator.closeSplashscreen(); }, fail: () => { loading.value = false; @@ -48,6 +49,7 @@ export default { url: "/pages/painting/index?id=" + state.id + "&pid=" + state.pid, success: () => { loading.value = false; + plus.navigator.closeSplashscreen(); }, fail: () => { loading.value = false; @@ -68,6 +70,7 @@ export default { success: () => { loading.value = false; + plus.navigator.closeSplashscreen(); }, fail: () => { loading.value = false; diff --git a/src/pages.json b/src/pages.json index d908710..8d0ff26 100644 --- a/src/pages.json +++ b/src/pages.json @@ -5,36 +5,53 @@ "custom": { "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue", "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue", - "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue" + "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue" } }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/login/index", - "style": { - "navigationBarTitleText": "登录", - "enablePullDownRefresh": false + { + "path": "pages/login/index", + "style": { + "navigationBarTitleText": "登录", + "enablePullDownRefresh": false + }, + "app-plus": { + "splashscreen": { + "alwaysShowBeforeRender": false, + "waiting": false, + "autoclose": false, + "delay": 0 + } + } }, - "app-plus" : { - "splashscreen" : { - "alwaysShowBeforeRender" : false - } -} - }, { "path": "pages/index/index", "style": { "navigationBarTitleText": "添加画作", "enablePullDownRefresh": false + }, + "app-plus": { + "splashscreen": { + "alwaysShowBeforeRender": false, + "waiting": false, + "autoclose": false, + "delay": 0 + } } }, - { "path": "pages/painting/index", "style": { "navigationBarTitleText": "入库", "enablePullDownRefresh": false - + }, + "app-plus": { + "splashscreen": { + "alwaysShowBeforeRender": false, + "waiting": false, + "autoclose": false, + "delay": 0 + } } }, { @@ -42,7 +59,14 @@ "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false - + }, + "app-plus": { + "splashscreen": { + "alwaysShowBeforeRender": false, + "waiting": false, + "autoclose": false, + "delay": 0 + } } } ], @@ -52,4 +76,4 @@ "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8" } -} +} \ No newline at end of file