fix rpg agent refresh restore route
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
- 正式主应用内部页面路径由 `src/routing/appPageRoutes.ts` 统一维护,不在组件里散落硬编码字符串。
|
||||
- `/puzzle` 与 `/big-fish` 保持为玩法调试直达入口;正式链路中的拼图和大鱼运行页使用 `/runtime/puzzle`、`/runtime/big-fish`,避免语义冲突。
|
||||
- 独立路径先解决页面阶段语义和浏览器前进后退;依赖运行中内存对象的详情页、结果页和运行页直接刷新后仍允许回退到平台首页或展示现有恢复态,不在本轮扩展资源 ID 深链加载。
|
||||
- `sessionStorage` 里的 RPG Agent 恢复指针只能在当前路径属于 `/creation/rpg/*`,或 URL 显式携带 `customWorldSessionId / customWorldOperationId / customWorldGenerationSource` 时生效;刷新平台首页、分类页、作品详情页时不能被本地残留指针强制跳到 `/creation/rpg/agent`。
|
||||
|
||||
## 页面路径表
|
||||
|
||||
@@ -46,3 +47,4 @@
|
||||
2. 从页面内切换到结果页、运行页或返回首页时,浏览器路径同步更新。
|
||||
3. 浏览器后退/前进能驱动 `selectionStage` 回到对应页面。
|
||||
4. `/puzzle` 与 `/big-fish` 仍进入原有玩法调试直达页。
|
||||
5. 仅有 `sessionStorage` 残留 RPG Agent 指针时,刷新 `/` 仍停留平台首页;刷新 `/creation/rpg/agent` 才恢复对应 Agent 工作区。
|
||||
|
||||
Reference in New Issue
Block a user