fix(环境管理): i18n

--bug=1008890 --user=lyh 【国际化】-Settiing-ENV manament-未翻译为英文
https://www.tapd.cn/55049933/s/1084032
This commit is contained in:
shiziyuan9527 2021-12-21 11:14:32 +08:00 committed by 刘瑞斌
parent c71abc5c4d
commit 2195752fbb
4 changed files with 9 additions and 3 deletions

View File

@ -229,7 +229,7 @@ export default {
typeChange() {
if (this.condition.type === "NONE" && this.condition.id && this.checkNode(this.condition.id)) {
this.condition.type = this.beforeCondition.type;
this.$warning("启用条件为 '无' 的域名已经存在!");
this.$warning(this.$t('api_test.environment.repeat_warning'));
return;
}
switch (this.condition.type) {
@ -307,7 +307,7 @@ export default {
},
add() {
if (this.condition.type === "NONE" && this.checkNode()) {
this.$warning("启用条件为 '无' 的域名已经存在,请更新!");
this.$warning(this.$t('api_test.environment.repeat_warning'));
return;
}
this.validateSocket();
@ -330,7 +330,7 @@ export default {
},
copy(row) {
if (row.type === "NONE") {
this.$warning("启用条件为 '无' 的域名不支持复制!");
this.$warning(this.$t('api_test.environment.copy_warning'));
return;
}
const index = this.httpConfig.conditions.findIndex((d) => d.id === row.id);

View File

@ -1322,6 +1322,8 @@ export default {
import: "Import Environment",
request_timeout: "Request Timeout",
response_timeout: "Response Timeout",
repeat_warning: "The domain name whose activation condition is'None' already exists!",
copy_warning: "Domain names whose enabling conditions are'none' do not support copying!"
},
scenario: {
id:"Scenario ID",

View File

@ -1327,6 +1327,8 @@ export default {
import: "导入环境",
request_timeout: "链接超时",
response_timeout: "响应超时",
repeat_warning: "启用条件为 '无' 的域名已经存在!",
copy_warning: "启用条件为 '无' 的域名不支持复制!"
},
scenario: {
id: "场景ID",

View File

@ -1327,6 +1327,8 @@ export default {
import: "導入環境",
request_timeout: "鏈接超時",
response_timeout: "響應超時",
repeat_warning: "啟用條件為 '無' 的域名已經存在!",
copy_warning: "啟用條件為 '無' 的域名不支持複製!"
},
scenario: {
id: "場景ID",