chenrui
7 天以前 bf6d13fdf5ba7dd4dd2533e62f95f529b272a31e
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>