Ver Fonte

退出登录带上医院标识

yuwenfen há 4 anos atrás
pai
commit
650b3908e3
2 ficheiros alterados com 4 adições e 3 exclusões
  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}`
 						});
 					}