From dc590d026e1130a98c70181fb65f8ed09414e787 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期五, 14 七月 2023 17:48:11 +0800 Subject: [PATCH] 1、主要解决获取当前用户信息等问题,使用AuthUtil来进行获取,对生成token等信息进行了修改增加。 --- Source/UBCS-WEB/dist/src/page/login/authredirect.vue | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/src/page/login/authredirect.vue b/Source/UBCS-WEB/dist/src/page/login/authredirect.vue new file mode 100644 index 0000000..15cbce1 --- /dev/null +++ b/Source/UBCS-WEB/dist/src/page/login/authredirect.vue @@ -0,0 +1,20 @@ +<template> + <div></div> +</template> + +<script> +export default { + name: 'authredirect', + created () { + window.close() + const params = this.$route.query + const state = params.state + const code = params.code + window.opener.location.href = `${window.location.origin}/#/login?state=${state}&code=${code}` + } +} +</script> + + +<style> +</style> -- Gitblit v1.9.3