nieyuge 2 năm trước cách đây
mục cha
commit
7b48641659
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      components/buttonLogin.vue

+ 1 - 3
components/buttonLogin.vue

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