mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 14:25:23 +00:00
perf: 修改 i18n
This commit is contained in:
@@ -66,16 +66,6 @@ export const MatchExcludeParenthesis = {
|
||||
trigger: ['blur', 'change']
|
||||
}
|
||||
|
||||
export default {
|
||||
IpCheck,
|
||||
Required,
|
||||
RequiredChange,
|
||||
EmailCheck,
|
||||
specialEmojiCheck,
|
||||
matchAlphanumericUnderscore,
|
||||
MatchExcludeParenthesis
|
||||
}
|
||||
|
||||
export const JsonRequired = {
|
||||
required: true,
|
||||
trigger: 'change',
|
||||
@@ -105,3 +95,13 @@ export const JsonRequiredUserNameMapped = {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
IpCheck,
|
||||
Required,
|
||||
RequiredChange,
|
||||
EmailCheck,
|
||||
specialEmojiCheck,
|
||||
matchAlphanumericUnderscore,
|
||||
MatchExcludeParenthesis
|
||||
}
|
||||
|
@@ -73,7 +73,8 @@ export default {
|
||||
return {
|
||||
selectedRows: [],
|
||||
init: false,
|
||||
extraQuery: extraQuery
|
||||
extraQuery: extraQuery,
|
||||
urlUpdated: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -165,14 +166,16 @@ export default {
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
deactivated() {
|
||||
this.preURL = location.href
|
||||
mounted() {
|
||||
this.urlUpdated[this.tableUrl] = location.href
|
||||
},
|
||||
activated() {
|
||||
if (this.preURL === location.href) {
|
||||
const preURL = this.urlUpdated[this.tableUrl]
|
||||
if (!preURL || preURL === location.href) {
|
||||
return
|
||||
}
|
||||
this.$log.info('Reload the table get latest data: pre ', this.preURL, ' current: ', location.href)
|
||||
this.tableUrl[this.tableUrl] = location.href
|
||||
this.$log.info('Reload the table get latest data: pre ', preURL, ' current: ', location.href)
|
||||
setTimeout(() => {
|
||||
this.reloadTable()
|
||||
}, 500)
|
||||
|
@@ -1,4 +1,12 @@
|
||||
{
|
||||
"FieldRequiredError": "This field is required.",
|
||||
"ServerError": "An error occurred while processing your request. Please try again later."
|
||||
"ServerError": "An error occurred while processing your request. Please try again later.",
|
||||
"InputEmailAddress": "Please enter a valid email address.",
|
||||
"FormatError": "The value entered is not in the correct format.",
|
||||
"NotSpecialEmoji": "Emoji is not allowed.",
|
||||
"notAlphanumericUnderscore": "Only alphanumeric characters and underscores are allowed.",
|
||||
"notParenthesis": "Parentheses are not allowed.",
|
||||
"InvalidJson": "Invalid JSON format.",
|
||||
"requiredHasUserNameMapped": "Username attr is required."
|
||||
}
|
||||
|
||||
|
@@ -1,3 +1,11 @@
|
||||
{
|
||||
"FieldRequiredError": "这个字段是必需的。"
|
||||
"FieldRequiredError": "这个字段是必需的。",
|
||||
"InputEmailAddress": "输入一个电子邮件地址。",
|
||||
"ServerError": "服务错误,请联系管理员。",
|
||||
"FormatError": "格式错误。",
|
||||
"NotSpecialEmoji": "不支持表情字符。",
|
||||
"notAlphanumericUnderscore": "仅支持字母、数字和下划线。",
|
||||
"notParenthesis": "不能包含括号。",
|
||||
"InvalidJson": "JSON 格式错误.",
|
||||
"requiredHasUserNameMapped": "用户名属性是必需的。"
|
||||
}
|
||||
|
@@ -2313,4 +2313,4 @@
|
||||
},
|
||||
"Footer": "頁尾"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user