From d3255e8425a494da852fed613b1b54dd99955266 Mon Sep 17 00:00:00 2001 From: unknown <1162963624@qq.com> Date: Mon, 30 Nov 2020 14:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/wblogin.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/login/wblogin.vue b/src/views/login/wblogin.vue index e062ef6..64ce83f 100644 --- a/src/views/login/wblogin.vue +++ b/src/views/login/wblogin.vue @@ -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}` } })) \ No newline at end of file