src/layout/components/Navbar.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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>