Ver código fonte

去掉访问切换

zhengkaixin 4 anos atrás
pai
commit
82783eb2d1
1 arquivos alterados com 4 adições e 14 exclusões
  1. 4 14
      src/components/Common.vue

+ 4 - 14
src/components/Common.vue

@@ -114,7 +114,7 @@
 			//获取用户详情
 			getUserInfoByOpenId() {
 				this.isLoading = true;
-
+				
 				var type = type || '';
 				API_WeiXin.getDataByOpenId(this.openId).then(response => {
 
@@ -170,21 +170,10 @@
 					mui.toast(error);
 				})
 			},
-			//判断权限然后进行跳转
-			projectExchange() {
-				//如果不想跳转,还可以传参exchange,一般用于home注册切换等功能
-				if (this.projectCheck && this.$route.query.exchange != '1' && this.person_popedom && this.person_popedom.sceneId) {
-					let project = Dictionaries.getProject(this.person_popedom.sceneId);
-					if (projectName.name != project ) {
-						window.location.href = '#/master';
-					}
-				}
-			},
-
-
+		
 			//异步回调父组件的方法
 			asynCallBack() {
-				this.projectExchange();
+				//this.projectExchange();
 				this.$emit('asynCallBack');
 			},
 			...mapMutations({
@@ -200,6 +189,7 @@
 			})
 		},
 		mounted() {
+			
 			//如果是开发环境则直接读取findbyopenid信息
 			if (process.env.VUE_APP_NODE_NAME == 'devlopment') {
 				this.getDataByOpenId();