KamoCRM

Replace window.location hard navigations with router.push/refresh

Fixkamo-internal
已装运
2026年3月11日 17:38 UTC
作者
kamo
提交
3ba58d4

All window.location.href, window.location.assign(), and window.location.reload() calls in page components caused full page reloads, wiping all React state including open tool windows (chat, softphone, calculator). Replaced with: - router.push() in account/page.tsx, EmployeeManager.tsx, LeadManager.tsx, PipelineDashboardTab.tsx - Next.js <Link> in **************** - router.refresh() in AvatarManager.tsx (re-fetches server data, preserves client state — no full page reload)

所有更改

就像你看到的运输?

所有东西都是靠自己运入你的工作空间的 从免费计划开始,一个月后再读这页.

永远开始自由查看定价