添加微博登录

This commit is contained in:
2020-07-23 14:28:58 +08:00
parent ea90eac506
commit 8520e5567a
2 changed files with 26 additions and 1 deletions

View File

@ -702,6 +702,8 @@ export default {
duration: 5000
})
}
} else if (type === 'weibo') {
window.location.href = 'https://api.weibo.com/oauth2/authorize?client_id=4159322735&redirect_uri=https://wyr.me/auth&response_type=code&state=weibo-' + this.postID
} else {
this.$toasted.show('敬请期待', {
position: 'top-center',