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']
|
trigger: ['blur', 'change']
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
|
||||||
IpCheck,
|
|
||||||
Required,
|
|
||||||
RequiredChange,
|
|
||||||
EmailCheck,
|
|
||||||
specialEmojiCheck,
|
|
||||||
matchAlphanumericUnderscore,
|
|
||||||
MatchExcludeParenthesis
|
|
||||||
}
|
|
||||||
|
|
||||||
export const JsonRequired = {
|
export const JsonRequired = {
|
||||||
required: true,
|
required: true,
|
||||||
trigger: 'change',
|
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 {
|
return {
|
||||||
selectedRows: [],
|
selectedRows: [],
|
||||||
init: false,
|
init: false,
|
||||||
extraQuery: extraQuery
|
extraQuery: extraQuery,
|
||||||
|
urlUpdated: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -165,14 +166,16 @@ export default {
|
|||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deactivated() {
|
mounted() {
|
||||||
this.preURL = location.href
|
this.urlUpdated[this.tableUrl] = location.href
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
if (this.preURL === location.href) {
|
const preURL = this.urlUpdated[this.tableUrl]
|
||||||
|
if (!preURL || preURL === location.href) {
|
||||||
return
|
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(() => {
|
setTimeout(() => {
|
||||||
this.reloadTable()
|
this.reloadTable()
|
||||||
}, 500)
|
}, 500)
|
||||||
|
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
"FieldRequiredError": "This field is required.",
|
"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": "頁尾"
|
"Footer": "頁尾"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user