nieyuge 2 年之前
父节点
当前提交
1407c2e570
共有 1 个文件被更改,包括 1 次插入3 次删除
  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) {