修正用户名显示逻辑进入服务列表页面自动刷新
This commit is contained in:
@@ -82,13 +82,23 @@
|
||||
if (item.path) {
|
||||
// 判断是 tabBar 页面还是普通页面
|
||||
const tabBarPages = [
|
||||
'/pages/furniture_reception/furniture_reception',
|
||||
'/pages-subpackage/furniture_customer/furniture_customer',
|
||||
'/pages/furniture_top_sales/furniture_top_sales',
|
||||
'/pages/ucenter/ucenter'
|
||||
];
|
||||
|
||||
if (tabBarPages.includes(item.path)) {
|
||||
if (item.path === '/pages/furniture_reception/furniture_reception') {
|
||||
uni.navigateTo({
|
||||
url: item.path,
|
||||
fail: (err) => {
|
||||
console.error('跳转失败:', err);
|
||||
uni.showToast({
|
||||
title: '页面不存在',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
});
|
||||
} else if (tabBarPages.includes(item.path)) {
|
||||
uni.switchTab({
|
||||
url: item.path,
|
||||
fail: (err) => {
|
||||
|
||||
Reference in New Issue
Block a user