添加github登陆功能

This commit is contained in:
yige committed 2020-07-15 01:22:34 +08:00
1 parent 7e61d738cf
commit 3f8396a254
2 files changed
+7 -12

No files matched your search

+1 -6
View File
@@ -437,12 +437,7 @@ export default {
}
},
login () {
const newWindow = window.open('https://github.com/login/oauth/authorize?client_id=ce1673a37333e47e482d&redirect_uri=https://www.wyr.me/auth', 'Github授权', 'scrollbars=yes,resizable=yes,status=no,location=yes,toolbar=no,menubar=no,width=800,height=600,left=0,top=0')
newWindow.onload = function () {
// newWindow.location
// newWindow.close()
}
window.open('https://github.com/login/oauth/authorize?client_id=ce1673a37333e47e482d&redirect_uri=https://www.wyr.me/auth', 'Github授权', 'scrollbars=yes,resizable=yes,status=no,location=yes,toolbar=no,menubar=no,width=800,height=600,left=0,top=0')
}
},
head () {