R64 A1-A6:新员工入门引导

这个提交包含在:
2026-04-14 16:45:10 +08:00
父节点 86644a6766
当前提交 7ac0de660c
共修改 12 个文件,包含 453 行新增和 5 行删除
+2 -1
查看文件
@@ -6,6 +6,7 @@ import { useAuth } from "../auth/AuthContext";
import { Button } from "../components/ui/button";
import { Input } from "../components/ui/input";
import { Label } from "../components/ui/label";
import { markOnboardingEntryReady } from "../lib/onboardingGuide";
const PASSWORD_REQUIREMENTS = [
"至少 12 位",
@@ -35,6 +36,7 @@ export function ChangePasswordPage() {
setSubmitting(true);
try {
await changePassword(oldPassword, newPassword);
markOnboardingEntryReady();
navigate("/portal", { replace: true });
} catch (err) {
if (isApiError(err)) {
@@ -127,4 +129,3 @@ export function ChangePasswordPage() {
</div>
);
}