From bdcf06feaaaa6675d03ffb48049f99f8590e24e8 Mon Sep 17 00:00:00 2001 From: mamc <1428594221@qq.com> Date: 星期二, 11 七月 2023 11:11:42 +0800 Subject: [PATCH] 获取参照信息查询搜索框bug --- Source/UBCS-WEB/dist/src/util/auth.js | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/src/util/auth.js b/Source/UBCS-WEB/dist/src/util/auth.js new file mode 100644 index 0000000..cb19ca4 --- /dev/null +++ b/Source/UBCS-WEB/dist/src/util/auth.js @@ -0,0 +1,27 @@ +import Cookies from 'js-cookie' +const TokenKey = 'saber-access-token' +const RefreshTokenKey = 'saber-refresh-token' +export function getToken() { + return Cookies.get(TokenKey) +} + +export function setToken(token) { + return Cookies.set(TokenKey, token) +} + +export function getRefreshToken() { + return Cookies.get(RefreshTokenKey) +} + +export function setRefreshToken(token) { + return Cookies.set(RefreshTokenKey, token) +} + +export function removeToken() { + return Cookies.remove(TokenKey) +} + +export function removeRefreshToken() { + return Cookies.remove(RefreshTokenKey) +} + -- Gitblit v1.9.3