feat(client): 授权管理独立一级屏——授权/购买续费/订单管理三 tab(桌面+移动)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-07-11 00:24:59 +08:00
parent 9fe1e2766f
commit 22e07613a1
60 changed files with 1598 additions and 96 deletions
+4 -1
View File
@@ -67,7 +67,8 @@ List<Override> shellOverrides() => [
isReadonlyProvider.overrideWithValue(false),
];
// 外壳 nav 引用 9 个分支序号(入/出库·库存·财务·往来·基础数据·设备·设置·关于)。
// 外壳 nav 引用的分支序号需与 app_router.dart 一一对齐(0-8 侧栏 + 9 我的
// 占位 + 10 授权管理),否则侧栏高亮(_navGroups item.index)会错位。
StatefulShellBranch _branch(String path, [WidgetBuilder? builder]) =>
StatefulShellBranch(routes: [
GoRoute(
@@ -92,6 +93,8 @@ GoRouter _router(String initialPath, WidgetBuilder screen) => GoRouter(
'/devices',
'/settings',
'/about',
'/me', // 9:桌面侧栏不含此项,占位保持分支序号对齐
'/license', // 10:授权管理独立一级屏
])
_branch(p, p == initialPath ? screen : null),
],