| | |
| | | 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>
|