张文飞 3 years ago
parent
commit
c2789695ff
2 changed files with 2 additions and 2 deletions
  1. 1 1
      App.vue
  2. 1 1
      manifest.json

+ 1 - 1
App.vue

@@ -5,7 +5,7 @@
 			let href = location.href;
 			let code  = this.getQueryString('code');
 			if(!code){
-				href = encodeURIComponent(href);
+				href = encodeURIComponent(href.split('#')[0]);
 				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;
 			}

+ 1 - 1
manifest.json

@@ -129,7 +129,7 @@
             "enable" : true
         },
         "router" : {
-            "base" : "",
+            "base" : "./",
             "mode" : "history"
         }
     },