From 17c2e25bc3a4cd1851d39c55b1fda16d527d7138 Mon Sep 17 00:00:00 2001 From: Jafeng <2998840497@qq.com> Date: Fri, 23 Jan 2026 11:23:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 12 ++++++------ pages/login/login.vue | 2 +- pages/work/profile.vue | 8 ++++++-- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/pages.json b/pages.json index 26ef421..81c291c 100644 --- a/pages.json +++ b/pages.json @@ -19,12 +19,12 @@ "navigationStyle": "custom" } }, - { - "path": "pages/message/index", - "style": { - "navigationBarTitleText": "消息" - } - }, + // { + // "path": "pages/message/index", + // "style": { + // "navigationBarTitleText": "消息" + // } + // }, { "path": "pages/message/index", "style": { diff --git a/pages/login/login.vue b/pages/login/login.vue index ee59991..f574300 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -81,7 +81,7 @@ function remind() { } function toHome() { - uni.navigateTo({ + uni.switchTab({ url: "/pages/message/message", }); } diff --git a/pages/work/profile.vue b/pages/work/profile.vue index 02caa6d..6b36534 100644 --- a/pages/work/profile.vue +++ b/pages/work/profile.vue @@ -178,7 +178,9 @@ const createDoctorInfo = async () => { icon: "success", }); await getDoctorInfo(); - uni.navigateBack(); + uni.switchTab({ + url: "/pages/work/work" + }); } else { uni.showToast({ title: "创建失败", @@ -204,7 +206,9 @@ const updateDoctorInfo = async () => { }); } await getDoctorInfo(); - uni.navigateBack(); + uni.switchTab({ + url: "/pages/work/work" + }); }; // 打开科室选择 const openDepartmentSelect = () => {