From 47cbe355f32acd15589406f856b636f0f5f54a4d Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Wed, 16 Oct 2024 16:43:23 +0800
Subject: [PATCH] 页面加载后不显示结果
---
src/main.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/main.js b/src/main.js
index 1095a5b..519b7e2 100644
--- a/src/main.js
+++ b/src/main.js
@@ -48,6 +48,10 @@
}
setStore({ name: 'userInfo', content: obj });
location.reload()
+} else {
+ if (localStorage.getItem("isReload")) {
+ localStorage.removeItem("isReload")
+ }
}
--
Gitblit v1.9.3