浏览代码

我的收藏+我的关注,跳转重新打开tabbar页面

dxz1228 2 年之前
父节点
当前提交
95d51a3dc1
共有 2 个文件被更改,包括 2 次插入 和 2 次删除
  1. 1 1
      src/pages/my-relation-merchant/index.vue
  2. 1 1
      src/pages/my-relation-product/index.vue

+ 1 - 1
src/pages/my-relation-merchant/index.vue

@@ -44,7 +44,7 @@ function handleItemClick(item) {
44
 }
44
 }
45
 
45
 
46
 function handleTodacang() {
46
 function handleTodacang() {
47
-  uni.switchTab({
47
+  uni.reLaunch({
48
     url: '/pages/store/nearby/index' // tabBar 页面路径
48
     url: '/pages/store/nearby/index' // tabBar 页面路径
49
   });
49
   });
50
 }
50
 }

+ 1 - 1
src/pages/my-relation-product/index.vue

@@ -81,7 +81,7 @@ function handleManage() {
81
 }
81
 }
82
 
82
 
83
 function handleTodacang() {
83
 function handleTodacang() {
84
-  uni.switchTab({
84
+  uni.reLaunch({
85
     url: '/pages/dacang/list/index' // tabBar 页面路径
85
     url: '/pages/dacang/list/index' // tabBar 页面路径
86
   });
86
   });
87
 }
87
 }