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 = () => {