fix(auth): 解决认证错误处理和会话管理问题
- 替换 AUTH_INVALID_TOKEN_CODE 为 AUTH_RELOGIN_REQUIRED_CODES 数组支持多种错误码 - 实现 hasClearableSessionState 和 hasRecordedUnauthorizedSession 函数优化会话清理逻辑 - 添加 clearQueryCache 选项控制查询缓存清理行为 - 修复马来西亚手机号正则验证模式导致的用户名验证问题 - 更新 API 错误消息处理优先级,优先使用服务端返回的消息 - 添加服务器消息检查函数 hasServerMessage 避免重复错误提示 - 在登录表单中实现密码可见性切换功能 - 添加密码可见性国际化文案支持 - 实现页面历史记录抽屉组件和相关动效 - 优化模态框背景遮罩样式和键盘事件处理 - 调整多个组件的 z-index 层级避免显示冲突
This commit is contained in:
@@ -284,6 +284,10 @@ export default {
|
||||
actions: {
|
||||
submitting: 'Submitting...',
|
||||
},
|
||||
passwordVisibility: {
|
||||
hide: 'Hide password',
|
||||
show: 'Show password',
|
||||
},
|
||||
},
|
||||
login: {
|
||||
actions: {
|
||||
@@ -450,6 +454,14 @@ export default {
|
||||
loading: 'Loading...',
|
||||
settled: 'Settled',
|
||||
},
|
||||
periodHistory: {
|
||||
title: 'Draw Result History',
|
||||
close: 'Close draw result history',
|
||||
empty: 'No draw results yet',
|
||||
failed: 'Failed to load draw results',
|
||||
loading: 'Loading...',
|
||||
retry: 'Retry',
|
||||
},
|
||||
topup: {
|
||||
title: 'Top-up Config',
|
||||
platformCoinLabel: 'Platform Coin',
|
||||
|
||||
@@ -284,6 +284,10 @@ export default {
|
||||
actions: {
|
||||
submitting: 'Mengirim...',
|
||||
},
|
||||
passwordVisibility: {
|
||||
hide: 'Sembunyikan kata sandi',
|
||||
show: 'Tampilkan kata sandi',
|
||||
},
|
||||
},
|
||||
login: {
|
||||
actions: {
|
||||
@@ -450,6 +454,14 @@ export default {
|
||||
loading: 'Memuat...',
|
||||
settled: 'Selesai',
|
||||
},
|
||||
periodHistory: {
|
||||
title: 'Riwayat Hasil Undian',
|
||||
close: 'Tutup riwayat hasil undian',
|
||||
empty: 'Belum ada hasil undian',
|
||||
failed: 'Gagal memuat hasil undian',
|
||||
loading: 'Memuat...',
|
||||
retry: 'Coba lagi',
|
||||
},
|
||||
topup: {
|
||||
title: 'Konfigurasi Isi Ulang',
|
||||
platformCoinLabel: 'Koin Platform',
|
||||
|
||||
@@ -289,6 +289,10 @@ export default {
|
||||
actions: {
|
||||
submitting: 'Menghantar...',
|
||||
},
|
||||
passwordVisibility: {
|
||||
hide: 'Sembunyikan kata laluan',
|
||||
show: 'Tunjukkan kata laluan',
|
||||
},
|
||||
},
|
||||
login: {
|
||||
actions: {
|
||||
@@ -455,6 +459,14 @@ export default {
|
||||
loading: 'Memuatkan...',
|
||||
settled: 'Selesai',
|
||||
},
|
||||
periodHistory: {
|
||||
title: 'Sejarah Keputusan Cabutan',
|
||||
close: 'Tutup sejarah keputusan cabutan',
|
||||
empty: 'Belum ada keputusan cabutan',
|
||||
failed: 'Gagal memuatkan keputusan cabutan',
|
||||
loading: 'Memuatkan...',
|
||||
retry: 'Cuba lagi',
|
||||
},
|
||||
topup: {
|
||||
title: 'Konfigurasi Tambah Nilai',
|
||||
platformCoinLabel: 'Syiling Platform',
|
||||
|
||||
@@ -272,6 +272,10 @@ export default {
|
||||
actions: {
|
||||
submitting: '提交中...',
|
||||
},
|
||||
passwordVisibility: {
|
||||
hide: '隐藏密码',
|
||||
show: '显示密码',
|
||||
},
|
||||
},
|
||||
login: {
|
||||
actions: {
|
||||
@@ -436,6 +440,14 @@ export default {
|
||||
loading: '加载中...',
|
||||
settled: '已结算',
|
||||
},
|
||||
periodHistory: {
|
||||
title: '开奖结果历史',
|
||||
close: '关闭开奖结果历史',
|
||||
empty: '暂无开奖结果',
|
||||
failed: '开奖结果加载失败',
|
||||
loading: '加载中...',
|
||||
retry: '重试',
|
||||
},
|
||||
topup: {
|
||||
title: '充值配置',
|
||||
platformCoinLabel: '平台币',
|
||||
|
||||
Reference in New Issue
Block a user