ソースを参照

Merge branch 'feature-landpage-update' into dev_1.1.7_lint

jihuaqiang 2 年 前
コミット
44f8a2a962
1 ファイル変更3 行追加1 行削除
  1. 3 1
      components/MobileLandPage.vue

+ 3 - 1
components/MobileLandPage.vue

@@ -194,6 +194,8 @@ export default {
 			location.href = `/course?useful=${this.useFul ? '1' : '0'}&playType=${this.playType}&rewardType=${this.rewardType}&postId=${this.postId}`;
 		},
 		async twitterAuth() {
+			let win = window.open();
+			win.opener = null;
 			postRequest(`/denet/user/twitterRequestToken`, {
 				params: {
 					oauthCallback: `${location.protocol}//${location.host}/authlogin`,
@@ -201,7 +203,7 @@ export default {
 			}).then(({ code, data }) => {
 				if (code == 0) {
 					let url = getOauthUrl(data.authToken);
-					let win = window.open(url);
+					win.location.href = url;
 					this.timer.value = setInterval(() => {
 						if (win && win.closed) {
 							clearInterval(this.timer.value);