fix: 全链路问题修复 — 编辑器返回/Tab导航/数据库编码/Token注入

修复内容:
- 编辑器返回按钮: 所有 context.go('/editor') 改为 context.push(),pop() 加安全守卫 fallback 到 /home
- Tab 导航: Web 平台强制使用移动端底部 TabBar 布局 (kIsWeb 守卫)
- 数据库编码: db.rs 自动追加 client_encoding=utf8 参数,修复中文 display_name 乱码
- AuthBloc token: 清理冗余 TODO,token 注入已在 AuthRepository 中正常工作
- 影响 9 个文件的编辑器导航调用点统一修改
This commit is contained in:
iven
2026-06-01 18:08:09 +08:00
parent 33dc5e19e4
commit 8e3e232278
10 changed files with 225 additions and 18 deletions

View File

@@ -260,7 +260,7 @@ class _AppShell extends StatelessWidget {
body: child,
floatingActionButton: selectedIndex == 0
? FloatingActionButton(
onPressed: () => context.go('/editor'),
onPressed: () => context.push('/editor'),
child: const Icon(Icons.edit_rounded),
)
: null,