|
@@ -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) {
|