gaoluyang
2 天以前 930d45addd344baf2c6706d996a50c029f0299d5
刷新页面
已修改1个文件
7 ■■■■ 文件已修改
src/layout/components/Navbar.vue 7 ●●●● 补丁 | 查看 | 原始文档 | 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>