chore
This commit is contained in:
@@ -1,17 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* 类型化路由常量
|
* 类型化路由常量
|
||||||
*
|
*
|
||||||
* 集中管理应用中使用的路由路径,与 Flutter `lib/router/app_router.dart` 的
|
|
||||||
* `AppRoutes` 一一对应。被服务端组件、客户端组件、`src/proxy.ts` 三端共用。
|
|
||||||
*
|
|
||||||
* 关键设计:
|
* 关键设计:
|
||||||
* - `as const` 让每个值都是字符串字面量类型,可用于 `PageProps<'/literal'>`。
|
* - `as const` 让每个值都是字符串字面量类型,可用于 `PageProps<'/literal'>`。
|
||||||
* - 不导出 Client-only 模块(`use-auth-gate` 走独立路径导入),保证 Server bundle 不被污染。
|
* - 不导出 Client-only 模块(`use-auth-gate` 走独立路径导入),保证 Server bundle 不被污染。
|
||||||
* - 动态深链通过 `ROUTE_BUILDERS` 函数生成,避免手拼字符串。
|
* - 动态深链通过 `ROUTE_BUILDERS` 函数生成,避免手拼字符串。
|
||||||
*
|
|
||||||
* 注意:proxy 路由跳转逻辑(2026-06-15 迁出),但本文件的类型化常量仍在
|
|
||||||
* 被 8 个组件(auth-screen / chat-header / DeepLinkPersist /
|
|
||||||
* error / not-found / page / sidebar-screen / splash-screen)使用 —— 不能整体注释。
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { PayChannel } from "@/data/dto/payment";
|
import type { PayChannel } from "@/data/dto/payment";
|
||||||
|
|||||||
Reference in New Issue
Block a user