feat(client): 抽屉+设置页加退出登录入口;酒行信息显示微信号
- 左侧抽屉底部、系统设置页底部各加「退出登录」按钮(窄屏顶栏菜单 不便时也能退出;登出后路由 redirect 自动跳 /login) - 酒行信息 tab 补显示「微信号」行(模型/编辑弹窗早已支持 wechat_id, 仅只读展示遗漏) 121 测试通过。todo #54 #55。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -142,6 +142,19 @@ class _AppShellState extends ConsumerState<AppShell> {
|
||||
}).toList(),
|
||||
),
|
||||
),
|
||||
// 退出登录(抽屉底部常驻,窄屏顶栏菜单不便时也能退出)
|
||||
const Divider(height: 1, color: Colors.white24),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.logout, color: Colors.white70),
|
||||
title: const Text('退出登录',
|
||||
style: TextStyle(
|
||||
color: Colors.white, fontWeight: FontWeight.w500)),
|
||||
onTap: () {
|
||||
Navigator.pop(context); // 关闭抽屉
|
||||
ref.read(authStateProvider.notifier).logout();
|
||||
context.go('/login');
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user