From 0c171b81714cc238da155dd49724d67703d9ed6a Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Sat, 19 Oct 2024 16:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=8C=85=E5=92=8C=E9=A2=84=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 25 ++++++++++++++----- src/pages/my-info/my-info.vue | 6 ++--- .../test-page/pages}/test-camera.vue | 0 .../test-page/pages}/test-crypto.vue | 0 .../test-page/pages}/test-page.vue | 2 +- 5 files changed, 23 insertions(+), 10 deletions(-) rename src/{pages/test-page => sub-packages/test-page/pages}/test-camera.vue (100%) rename src/{pages/test-page => sub-packages/test-page/pages}/test-crypto.vue (100%) rename src/{pages/test-page => sub-packages/test-page/pages}/test-page.vue (97%) diff --git a/src/pages.json b/src/pages.json index 5e0d7dd..ea4cca1 100644 --- a/src/pages.json +++ b/src/pages.json @@ -27,12 +27,6 @@ "navigationBarTitleText": "分类" } }, - { - "path": "pages/test-page/test-page", - "style": { - "navigationBarTitleText": "测试页面" - } - }, { "path": "pages/test-page/test-camera", "style": { @@ -105,5 +99,24 @@ "color": "", "backgroundColor": "" }, + "subPackages": [ + { + "root": "sub-packages/test-page", + "pages": [ + { + "path": "pages/test-page", + "style": { + "navigationBarTitleText": "测试页面" + } + } + ] + } + ], + "preloadRule": { + "pages/my-info/my-info": { + "network": "all", + "packages": ["sub-packages/test-page"] + } + }, "uniIdRouter": {} } diff --git a/src/pages/my-info/my-info.vue b/src/pages/my-info/my-info.vue index 28f4935..968c597 100644 --- a/src/pages/my-info/my-info.vue +++ b/src/pages/my-info/my-info.vue @@ -6,11 +6,11 @@ - + - + @@ -19,7 +19,7 @@