diff --git a/src/pages.json b/src/pages.json index 0f631f8..e6056c1 100644 --- a/src/pages.json +++ b/src/pages.json @@ -51,6 +51,14 @@ "style": { "navigationBarTitleText": "关于" } + }, + { + "path": "pages/index/request", + "type": "page", + "layout": "demo", + "style": { + "navigationBarTitleText": "请求" + } } ], "subPackages": [ diff --git a/src/pages/index/about.vue b/src/pages/index/about.vue index 9b6071c..ef122d9 100644 --- a/src/pages/index/about.vue +++ b/src/pages/index/about.vue @@ -17,7 +17,7 @@ 菲鸽 - wot 组件库测试 + 去请求页 @@ -36,6 +36,12 @@ import PLATFORM from '@/utils/platform' const { safeAreaInsets } = uni.getSystemInfoSync() console.log(PLATFORM) + +const gotoPage = (page: string) => { + uni.navigateTo({ + url: `/pages/index/${page}`, + }) +}