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 @@