From fc04ecc097ff1fc245bc23e7da3e0a9b16cdbd3b Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Mon, 29 Sep 2025 20:22:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A6=96=E9=A1=B5):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=89=8D=E5=BE=80=E7=A4=BA=E4=BE=8B=E9=A1=B5=E7=9A=84=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=92=8C=E8=B7=B3=E8=BD=AC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 gotoAbout 方法实现页面跳转功能,并在首页添加对应的按钮 --- src/pages/index/index.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 50a869b..687d096 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -25,6 +25,14 @@ console.log('index/index 首页打印了') onLoad(() => { console.log('测试 uni API 自动引入: onLoad') }) + +// #region gotoAbout +function gotoAbout() { + uni.navigateTo({ + url: '/pages-sub/about/about', + }) +} +// #endregion