| | |
| | | import { ElMessage, type FormInstance } from 'element-plus'; |
| | | import { computed, reactive, ref } from 'vue'; |
| | | import { PostLogin, loginMessageUser, loginVerifyMessage } from '/@/api/ai/user'; |
| | | import { isLoginStatus, isShowLogin } from '/@/stores/chatRoom'; |
| | | import { isLoginStatus, isNewOldUser, isShowLogin } from '/@/stores/chatRoom'; |
| | | |
| | | import { LoginInfo } from '/@/utils/storage'; |
| | | |
| | |
| | | if (!res.json_ok) { |
| | | return ElMessage.error(res.json_msg); |
| | | } |
| | | |
| | | isNewOldUser.value = res.web_login; |
| | | LoginInfo.set(res.hswatersession, state.loginForm.account); |
| | | } else if (state.activeLoginName === 'phoneUser') { |
| | | //手机登录 |
| | |
| | | return ElMessage.error(res.json_msg); |
| | | } |
| | | LoginInfo.set(res.hswatersession, state.loginPhoneForm.phoneUser); |
| | | isNewOldUser.value = res.web_login; |
| | | } |
| | | |
| | | isShowLogin.value = false; |
| | | isLoginStatus.value = true; |
| | | window.location.reload(); |
| | | // window.location.reload(); |
| | | }; |
| | | const countdown = ref(null); |
| | | |