gaoluyang
9 天以前 7f0277a65ed5e59317a7fe885c9219c875f1ed77
src/layout/components/Navbar.vue
@@ -135,12 +135,18 @@
    password: Cookies.get("password") === undefined ? null : decrypt(Cookies.get("password")),
    currentFatoryId: currentFatoryId
  }
  console.log('loginForm', loginForm)
  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>