diff --git a/common/untool.js b/common/untool.js index 0f47b64..3e36150 100644 --- a/common/untool.js +++ b/common/untool.js @@ -24,8 +24,9 @@ const goto = (url, type = 1)=> { url = url.replace(`pages/`, '') url = `/pages/${url}` if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) { - return uni.switchTab({ - url + // tabBar 使用 reLaunch切换,防止页面不刷新 + return uni.reLaunch({ + url }); } if (type == 1){ diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index e0db6e6..430822a 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -37,7 +37,8 @@ @@ -83,15 +84,15 @@ - - - - {{tlItem.title}} - + + + + {{tlItem.title}} + - - - + + + @@ -109,7 +110,7 @@