fix(kyc): 验证成功后刷新KYC状态
在跳转到实名认证页面前调用 ref.invalidate(kycStatusProvider) 确保手机号验证状态能正确更新 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1c62a8cb29
commit
b10a158684
|
|
@ -438,7 +438,8 @@ class _ChangePhonePageState extends ConsumerState<ChangePhonePage> {
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: OutlinedButton(
|
child: OutlinedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// 直接跳转到实名认证页面,清除中间页面栈
|
// 刷新 KYC 状态后跳转到实名认证页面
|
||||||
|
ref.invalidate(kycStatusProvider);
|
||||||
context.go(RoutePaths.kycEntry);
|
context.go(RoutePaths.kycEntry);
|
||||||
},
|
},
|
||||||
style: OutlinedButton.styleFrom(
|
style: OutlinedButton.styleFrom(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue