From 0c966cb74acac1a1cc3bcaaa579019f1177d3e36 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期二, 20 九月 2022 15:42:26 +0800
Subject: [PATCH] 解决dialog数据不销毁

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

diff --git a/src/utils/auth.js b/src/utils/auth.js
index f6388e4..12a4292 100644
--- a/src/utils/auth.js
+++ b/src/utils/auth.js
@@ -1,15 +1,15 @@
-// import Cookies from 'js-cookie'
+import Cookies from 'js-cookie'
 
-// const TokenKey = 'loginToken'
+const TokenKey = 'loginToken'
 
-// export function getToken() {
-//   return Cookies.get(TokenKey)
-// }
+export function getToken() {
+  return Cookies.get(TokenKey)
+}
 
-// export function setToken(token) {
-//   return Cookies.set(TokenKey, token)
-// }
+export function setToken(token) {
+  return Cookies.set(TokenKey, token)
+}
 
-// export function removeToken() {
-//   return Cookies.remove(TokenKey)
-// }
+export function removeToken() {
+  return Cookies.remove(TokenKey)
+}

--
Gitblit v1.8.0