diff --git a/src/App.vue b/src/App.vue index 0c6d57f..8df83b7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -78,16 +78,17 @@ export default { } } }; - if (window.plus) { - if (plus?.webview.getWebviewById("wv").tokenScan) { - paintingDetail(); + setTimeout(() => { + if (window.plus) { + if (plus?.webview.getWebviewById("wv").tokenScan) { + paintingDetail(); + } + } else { + if (uni.getStorageSync("store-token")) { + paintingDetail(); + } } - } else { - if (uni.getStorageSync("store-token")) { - paintingDetail(); - } - } - console.log("v1"); + }, 200); }, onShow: function () {}, onHide: function () { diff --git a/src/pages.json b/src/pages.json index df703ea..d908710 100644 --- a/src/pages.json +++ b/src/pages.json @@ -9,7 +9,18 @@ } }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - + { + "path": "pages/login/index", + "style": { + "navigationBarTitleText": "登录", + "enablePullDownRefresh": false + }, + "app-plus" : { + "splashscreen" : { + "alwaysShowBeforeRender" : false + } +} + }, { "path": "pages/index/index", "style": { @@ -17,13 +28,7 @@ "enablePullDownRefresh": false } }, - { - "path": "pages/login/index", - "style": { - "navigationBarTitleText": "登录", - "enablePullDownRefresh": false - } - }, + { "path": "pages/painting/index", "style": {