From b3c1b95437d2edd914cb4e0c62c55737d7e61657 Mon Sep 17 00:00:00 2001 From: Michelle.Chung <1242874891@qq.com> Date: 星期一, 20 十一月 2023 19:27:03 +0800 Subject: [PATCH] add 新增响应解密私钥 ; add 新增 crypto#decryptBase64 Base64解码方法 ; update 更新响应拦截器增加响应解密逻辑 ; --- src/layout/components/SocialCallback/index.vue | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/layout/components/SocialCallback/index.vue b/src/layout/components/SocialCallback/index.vue index dd381da..e3a50e0 100644 --- a/src/layout/components/SocialCallback/index.vue +++ b/src/layout/components/SocialCallback/index.vue @@ -4,9 +4,7 @@ <script setup lang="ts"> import { login, callback } from '@/api/login'; -import { setToken } from '@/utils/auth'; -import Cookies from 'js-cookie'; -import { getToken } from '@/utils/auth'; +import { setToken, getToken } from '@/utils/auth'; import { LoginData } from '@/api/types'; const route = useRoute(); @@ -20,7 +18,7 @@ const code = route.query.code as string; const state = route.query.state as string; const source = route.query.source as string; -const tenantId = Cookies.get("tenantId") ? Cookies.get("tenantId") as string : '000000'; +const tenantId = localStorage.getItem("tenantId") ? localStorage.getItem("tenantId") as string : '000000'; const processResponse = async (res: any) => { -- Gitblit v1.9.3