浏览代码

跳转首页改为reLaunch,解决切换时未刷新首页问题

htc 1 年之前
父节点
当前提交
4f710cc064
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/home/index.vue

+ 1 - 1
pages/home/index.vue

@@ -287,7 +287,7 @@
 						this.list = [];
 						uni.setStorageSync('homestayId', '');
 						uni.setStorageSync('merchantId', t.merchantId);
-						uni.navigateTo({
+						uni.reLaunch({
 							url: '/pagesHouse/home/index?merchantType=' + t.merchantType
 						})
 					}