Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
45f26735
提交
45f26735
authored
8月 03, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 优化token过期提示框
上级
fa94b6e0
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
23 行增加
和
14 行删除
+23
-14
en.js
frontend/src/lang/en.js
+2
-1
tw.js
frontend/src/lang/tw.js
+13
-12
zh.js
frontend/src/lang/zh.js
+2
-1
request.js
frontend/src/utils/request.js
+6
-0
没有找到文件。
frontend/src/lang/en.js
浏览文件 @
45f26735
...
...
@@ -126,7 +126,8 @@ export default {
expires
:
'Login token expired, please login again'
,
tokenError
:
'Token error, please login again'
,
username_error
:
'Please enter the correct ID'
,
password_error
:
'The password can not be less than 8 digits'
password_error
:
'The password can not be less than 8 digits'
,
login_again
:
'Login again'
},
commons
:
{
no_target_permission
:
'No permission'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
45f26735
...
...
@@ -109,24 +109,25 @@ export default {
navbar
:
{
dashboard
:
'首頁'
,
github
:
'項目地址'
,
logOut
:
'退出登
陸
'
,
logOut
:
'退出登
錄
'
,
profile
:
'個人中心'
,
theme
:
'換膚'
,
size
:
'佈局大小'
},
login
:
{
title
:
'系統登
陸
'
,
title
:
'系統登
錄
'
,
welcome
:
'歡迎使用'
,
logIn
:
'登
陸
'
,
logIn
:
'登
錄
'
,
username
:
'帳號'
,
password
:
'密碼'
,
any
:
'任意字符'
,
thirdparty
:
'第三方登
陸
'
,
thirdparty
:
'第三方登
錄
'
,
thirdpartyTips
:
'本地不能模擬,請結合自己業務進行模擬!!!'
,
expires
:
'登
陸信息過期,請重新登陸
'
,
tokenError
:
'信息錯誤,請重新登
陸
'
,
expires
:
'登
錄信息過期,請重新登錄
'
,
tokenError
:
'信息錯誤,請重新登
錄
'
,
username_error
:
'請輸入正確的 ID'
,
password_error
:
'密碼不小於 8 位'
password_error
:
'密碼不小於 8 位'
,
login_again
:
'重新登錄'
},
commons
:
{
no_target_permission
:
'沒有權限'
,
...
...
@@ -183,7 +184,7 @@ export default {
prompt
:
'提示'
,
operating
:
'操作'
,
input_limit
:
'長度在 {0} 到 {1} 個字符'
,
login
:
'登
陸
'
,
login
:
'登
錄
'
,
welcome
:
'一站式開源數據分析平臺'
,
username
:
'姓名'
,
password
:
'密碼'
,
...
...
@@ -255,7 +256,7 @@ export default {
remove
:
'移除'
,
remove_cancel
:
'移除取消'
,
remove_success
:
'移除成功'
,
tips
:
'認證信息已過期,請重新登
陸
'
,
tips
:
'認證信息已過期,請重新登
錄
'
,
not_performed_yet
:
'尚未執行'
,
incorrect_input
:
'輸入內容不正確'
,
delete_confirm
:
'請輸入以下內容,確認刪除:'
,
...
...
@@ -1165,9 +1166,9 @@ export default {
},
display
:
{
logo
:
'頭部系統 Logo'
,
loginLogo
:
'登
陸
頁面頭部 Logo'
,
loginImage
:
'登
陸
頁面右側圖片'
,
loginTitle
:
'登
陸
頁面標題'
,
loginLogo
:
'登
錄
頁面頭部 Logo'
,
loginImage
:
'登
錄
頁面右側圖片'
,
loginTitle
:
'登
錄
頁面標題'
,
title
:
'系統名稱'
,
advice_size
:
'建議圖片大小'
},
...
...
frontend/src/lang/zh.js
浏览文件 @
45f26735
...
...
@@ -126,7 +126,8 @@ export default {
expires
:
'登录信息过期,请重新登录'
,
tokenError
:
'登陆信息错误,请重新登录'
,
username_error
:
'请输入正确的 ID'
,
password_error
:
'密码不小于 8 位'
password_error
:
'密码不小于 8 位'
,
login_again
:
'重新登录'
},
commons
:
{
no_target_permission
:
'没有权限'
,
...
...
frontend/src/utils/request.js
浏览文件 @
45f26735
...
...
@@ -62,6 +62,9 @@ const checkAuth = response => {
store
.
dispatch
(
'user/logout'
).
then
(()
=>
{
location
.
reload
()
})
},
{
confirmButtonText
:
i18n
.
t
(
'login.login_again'
),
showClose
:
false
})
}
...
...
@@ -71,6 +74,9 @@ const checkAuth = response => {
store
.
dispatch
(
'user/logout'
).
then
(()
=>
{
location
.
reload
()
})
},
{
confirmButtonText
:
i18n
.
t
(
'login.login_again'
),
showClose
:
false
})
}
// token到期后自动续命 刷新token
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论