From 71930b2b36894216e86d69264ca510cca284546b Mon Sep 17 00:00:00 2001
From: hailin <1356886193@qq.com>
Date: 星期二, 08 八月 2023 13:30:05 +0800
Subject: [PATCH] 最后一舞---去他妈的缪海庆,扣脚大爷都没你扣,没有格局把路走窄了

---
 src/utils/auth.js |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/utils/auth.js b/src/utils/auth.js
index 059af18..b131480 100644
--- a/src/utils/auth.js
+++ b/src/utils/auth.js
@@ -1,6 +1,7 @@
 import Cookies from 'js-cookie'
 
 const TokenKey = 'vue_admin_template_token'
+const RefreshKey = 'vue_admin_template_refresh'
 
 export function getToken() {
   return Cookies.get(TokenKey)
@@ -13,3 +14,16 @@
 export function removeToken() {
   return Cookies.remove(TokenKey)
 }
+
+export function getRefresh() {
+  return Cookies.get(RefreshKey)
+}
+
+export function setRefresh(refresh) {
+  return Cookies.set(RefreshKey, refresh)
+}
+
+export function removeRefresh() {
+  return Cookies.remove(RefreshKey)
+}
+

--
Gitblit v1.9.3