nieyuge 2 years ago
parent
commit
1407c2e570
1 changed files with 1 additions and 3 deletions
  1. 1 3
      components/buttonLogin.vue

+ 1 - 3
components/buttonLogin.vue

@@ -33,15 +33,13 @@ export default {
             }
         },
         async twitterAuth() {
-            let win = window.open();
-			    win.opener = null;
             postRequest(`/denet/user/twitterRequestToken`, {
 				params: {
 					oauthCallback: `${jumpUrl}authlogin`,
 				},
 			}).then(({ code, data }) => {
                 if (code == 0) {
-                    win.location.href = getOauthUrl(data.authToken);
+                    let win = window.open(getOauthUrl(data.authToken));
                     // timer
                     this.timer = setInterval(() => {
 						if (win && win.closed) {