跳转页面

This commit is contained in:
unknown 2020-11-30 14:43:35 +08:00
parent 7db44e7e5f
commit d3255e8425

View File

@ -13,9 +13,7 @@ import { useRoute } from "vue-router";
export default defineComponent(({ export default defineComponent(({
setup(){ setup(){
const code = useRoute().params.code; 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)=>{ 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}`
console.log(res)
})
} }
})) }))
</script> </script>