From dd8a2ebfa5e45b86b84d88117805ac90c1b7464f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Tue, 2 Apr 2024 21:25:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=82=B9=E5=87=BB=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 7 +++++++ src/pages/index/about.vue | 8 +++++++- src/pages/index/index.vue | 23 +++-------------------- 3 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/pages.json b/src/pages.json index 0f631f8..4ada0fa 100644 --- a/src/pages.json +++ b/src/pages.json @@ -51,6 +51,13 @@ "style": { "navigationBarTitleText": "关于" } + }, + { + "path": "pages/index/i18n", + "type": "page", + "style": { + "navigationBarTitleText": "%app.name%" + } } ], "subPackages": [ diff --git a/src/pages/index/about.vue b/src/pages/index/about.vue index 9b6071c..bd55cf1 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 = () => { + uni.navigateTo({ + url: '/pages/index/i18n', + }) +}