fix:编译失败

This commit is contained in:
Jafeng 2026-01-23 11:23:31 +08:00
parent 746ac714e4
commit 17c2e25bc3
3 changed files with 13 additions and 9 deletions

View File

@ -19,12 +19,12 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ // {
"path": "pages/message/index", // "path": "pages/message/index",
"style": { // "style": {
"navigationBarTitleText": "消息" // "navigationBarTitleText": "消息"
} // }
}, // },
{ {
"path": "pages/message/index", "path": "pages/message/index",
"style": { "style": {

View File

@ -81,7 +81,7 @@ function remind() {
} }
function toHome() { function toHome() {
uni.navigateTo({ uni.switchTab({
url: "/pages/message/message", url: "/pages/message/message",
}); });
} }

View File

@ -178,7 +178,9 @@ const createDoctorInfo = async () => {
icon: "success", icon: "success",
}); });
await getDoctorInfo(); await getDoctorInfo();
uni.navigateBack(); uni.switchTab({
url: "/pages/work/work"
});
} else { } else {
uni.showToast({ uni.showToast({
title: "创建失败", title: "创建失败",
@ -204,7 +206,9 @@ const updateDoctorInfo = async () => {
}); });
} }
await getDoctorInfo(); await getDoctorInfo();
uni.navigateBack(); uni.switchTab({
url: "/pages/work/work"
});
}; };
// //
const openDepartmentSelect = () => { const openDepartmentSelect = () => {