张文飞 3 yıl önce
ebeveyn
işleme
fa88b91c48
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      App.vue

+ 1 - 2
App.vue

@@ -4,8 +4,7 @@
 		onLaunch: function() {
 			let href = location.href;
 			let code  = this.getQueryString('code');
-			let userId =  this.$cache.get('_user_id')
-			if(!(code&&userId)){
+			if(!code){
 				href = encodeURIComponent(href);
 				let url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+config.appid+"&redirect_uri="+href+"&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect"
 				window.location.href = url;