feat(projects): add request exception example page

This commit is contained in:
Soybean
2024-03-24 06:23:56 +08:00
parent 11a6a3bd80
commit 41e8bc44f8
11 changed files with 175 additions and 16 deletions

View File

@ -33,6 +33,7 @@ const local: App.I18n.Schema = {
search: 'Search',
switch: 'Switch',
tip: 'Tip',
trigger: 'Trigger',
update: 'Update',
updateSuccess: 'Update Success',
userCenter: 'User Center',
@ -41,6 +42,14 @@ const local: App.I18n.Schema = {
no: 'No'
}
},
request: {
logout: 'Logout user after request failed',
logoutMsg: 'User status is invalid, please log in again',
logoutWithModal: 'Pop up modal after request failed and then log out user',
logoutWithModalMsg: 'User status is invalid, please log in again',
refreshToken: 'The requested token has expired, refresh the token',
tokenExpired: 'The requested token has expired'
},
theme: {
themeSchema: {
title: 'Theme Schema',
@ -138,6 +147,7 @@ const local: App.I18n.Schema = {
'function_hide-child_one': 'Hide Child',
'function_hide-child_two': 'Two',
'function_hide-child_three': 'Three',
function_request: 'Request',
manage: 'System Manage',
manage_user: 'User Manage',
'manage_user-detail': 'User Detail',

View File

@ -33,6 +33,7 @@ const local: App.I18n.Schema = {
search: '搜索',
switch: '切换',
tip: '提示',
trigger: '触发',
update: '更新',
updateSuccess: '更新成功',
userCenter: '个人中心',
@ -41,6 +42,14 @@ const local: App.I18n.Schema = {
no: '否'
}
},
request: {
logout: '请求失败后登出用户',
logoutMsg: '用户状态失效,请重新登录',
logoutWithModal: '请求失败后弹出模态框再登出用户',
logoutWithModalMsg: '用户状态失效,请重新登录',
refreshToken: '请求的token已过期刷新token',
tokenExpired: 'token已过期'
},
theme: {
themeSchema: {
title: '主题模式',
@ -138,6 +147,7 @@ const local: App.I18n.Schema = {
'function_hide-child_one': '隐藏子菜单',
'function_hide-child_two': '菜单二',
'function_hide-child_three': '菜单三',
function_request: '请求',
manage: '系统管理',
manage_user: '用户管理',
'manage_user-detail': '用户详情',