Przeglądaj źródła

退出登录带上医院标识

yuwenfen 4 lat temu
rodzic
commit
650b3908e3
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 2 2
      pages/home/home.vue
  2. 2 1
      pages/login/login.vue

+ 2 - 2
pages/home/home.vue

@@ -108,8 +108,8 @@
 					}
 				}).then((data)=>{
 					if(data){
-						uni.navigateTo({
-							url: '/pages/login/login'
+						uni.redirectTo({
+							url: `/pages/login/login?hospSign=${uni.getStorageSync('hospSign')}`
 						});
 					}
 				});

+ 2 - 1
pages/login/login.vue

@@ -64,6 +64,7 @@
 					  uni.setStorageSync('nowPermission', data.nowPermission);
 						uni.setStorageSync('id', data.id);
 						uni.setStorageSync('name', data.name);
+						uni.setStorageSync('hospSign', this.hospSign);
 						this.rolToTarget(data.nowPermission)
 					}
 				});
@@ -74,7 +75,7 @@
 					let current = this.rolList.find(item => item.permission == nowPermission);
 					if(current){
 						// 页面跳转
-						uni.navigateTo({
+						uni.redirectTo({
 							 url: `/${current.pagePath}`
 						});
 					}