From 4b1304917b0b16b09dd50191fab59d96933c0cf3 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期二, 17 六月 2025 17:31:11 +0800
Subject: [PATCH] feat: 6月15日任务完90%
---
src/layout/components/Navbar.vue | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 3c70204..a8e08a9 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -136,11 +136,16 @@
currentFatoryId: currentFatoryId
}
userStore.loginCheckFactory(loginForm).then(res => {
- window.location.reload();
+ forceReload();
}).catch((err) => {
console.log(err)
})
}
+function forceReload() {
+ const currentUrl = window.location.origin + window.location.pathname;
+ const timestamp = new Date().getTime();
+ window.location.href = `${currentUrl}?reload=${timestamp}`;
+}
getUserLoginFacotryList();
</script>
--
Gitblit v1.9.3