| | |
| | | |
| | | // 自动生成密码函数 |
| | | const generatePassword = () => { |
| | | const currentDate = getCurrentDate(); // 直接调用函数 |
| | | const currentDate = getCurrentDate(); // 直接调用函数 |
| | | return `Hrs#${currentDate}*`; |
| | | }; |
| | | |
| | | if (options.redirect) { |
| | | redirect.value = decodeURIComponent(options.redirect); |
| | | } |
| | | password.value = generatePassword(); // 直接调用函数 |
| | | password.value = generatePassword(); // 直接调用函数 |
| | | username.value = "admin"; |
| | | // 检测是否鸿蒙系统 |
| | | // #ifdef HARMONY |
| | |
| | | |
| | | // 6. 存储用户信息 |
| | | userStore.setUserInfo(userInfo); |
| | | console.log(userInfo,'userInfo'); |
| | | |
| | | // 7. 跳转到目标页面 |
| | | const redirects = redirect.value || "/pages/index/index"; |