xbx #187

Merged
theluyuan merged 2 commits from xbx into master 2020-11-30 06:45:07 +00:00
Showing only changes of commit d3255e8425 - Show all commits

View File

@ -13,9 +13,7 @@ import { useRoute } from "vue-router";
export default defineComponent(({
setup(){
const code = useRoute().params.code;
axios.get(`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`).then((res)=>{
console.log(res)
})
window.location.href=`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`
}
}))
</script>