fix(mobile-app): 修复签署成功后导航报错问题

- 签署成功后检查 canPop() 再决定返回方式
- 如果没有上一页则跳转到首页

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-25 03:54:18 -08:00
parent 2d9e1b2d03
commit 36e4e875bf
1 changed files with 8 additions and 2 deletions

View File

@ -343,8 +343,14 @@ class _ContractSigningPageState extends ConsumerState<ContractSigningPage> {
actions: [ actions: [
TextButton( TextButton(
onPressed: () { onPressed: () {
Navigator.of(context).pop(); Navigator.of(context).pop(); //
context.pop(true); //
if (context.canPop()) {
context.pop(true);
} else {
//
context.go('/');
}
}, },
child: const Text('完成'), child: const Text('完成'),
), ),