业务约定:客户档案 / 病历 / 预约等宿主页面「打开新页,不在当前页面做跳转」。 原来四处槽位跳转全用 `_top` —— PAC 嵌在宿主 iframe 里时会把整个宿主页顶掉, 客服看完档案回不到刚才的工单(召回上下文、已填的通话结果全丢)。 四处统一收口到 action-url.ts 的两个出口,免得以后再各写各的 target: a 标签 → HOST_LINK_PROPS (target=_blank + rel=noopener noreferrer) JS 派发 → openHostUrl() 覆盖:VIEW_PATIENT(原始档案)、VIEW_MEDICAL_RECORD(原始病历)、 CREATE_APPOINTMENT(新建预约)、OPEN_POTENTIAL_TREATMENT / OPEN_RETURN_VISIT 的 URL 模式(postMessage 模式不涉及跳转,不动)。 本地实测:两个 a 标签渲染成 target="_blank" rel="noopener noreferrer"; 新建预约走 openHostUrl 打开宿主页。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ai-invocations | Loading commit data... | |
| assistant | Loading commit data... | |
| host-admin | Loading commit data... | |
| pet | Loading commit data... | |
| plan-detail | Loading commit data... | |
| plans | Loading commit data... | |
| realtime-coach | Loading commit data... | |
| recall-debug | Loading commit data... | |
| ui | Loading commit data... | |
| auth-gate.tsx | Loading commit data... | |
| can.tsx | Loading commit data... | |
| identity-cluster.tsx | Loading commit data... | |
| mock-login-dialog.tsx | Loading commit data... | |
| priority-hover.tsx | Loading commit data... | |
| session-expired.tsx | Loading commit data... |