From 57ffebab5fded6f5236bd1b40c4b4e7a6d4ae07f Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 31 七月 2024 09:50:09 +0800
Subject: [PATCH] 驱动下载

---
 src/util/storage.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/util/storage.js b/src/util/storage.js
index 614ef0f..c691e0e 100644
--- a/src/util/storage.js
+++ b/src/util/storage.js
@@ -7,6 +7,13 @@
  * @method remove 移除永久缓存
  * @method clear 移除全部永久缓存
  */
+export function getUserInfo() {
+	const userInfo = Cookies.get('userInfo')
+	if(userInfo){
+		return JSON.parse(userInfo)
+	}
+}
+
 export const Local = {
 	// 设置永久缓存
 	set(key, val) {

--
Gitblit v1.9.2