From 76b2da3d2511d252298aaf1d37db200c48a8d092 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 14 六月 2022 14:51:54 +0800
Subject: [PATCH] 1.提交部分代码
---
src/utils/auth.js | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/utils/auth.js b/src/utils/auth.js
index 059af18..a137df1 100644
--- a/src/utils/auth.js
+++ b/src/utils/auth.js
@@ -13,3 +13,15 @@
export function removeToken() {
return Cookies.remove(TokenKey)
}
+
+export function getCookie(key) {
+ return Cookies.get(key)
+}
+
+export function setCookie(key, value) {
+ return Cookies.set(key, value)
+}
+
+export function removeCookie(key) {
+ return Cookies.remove(key)
+}
--
Gitblit v1.9.3