diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 1fde2e898..59ddaa0f6 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -388,6 +388,7 @@ "TestSelectedSystemUsersConnective": "Test selected system users connective", "UpdateAssetDetail": "Update more detail", "AddSuccessMsg": "Add success", + "AddFailMsg": "Add fail", "Auth": "Authorization", "BadRequestErrorMsg": "Bad request, please check again", "BadRoleErrorMsg": "Bad request, no permission for this operation", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index 8840e0af8..a708f4fda 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -384,6 +384,7 @@ "TemplateAdd": "テンプレートの追加", "UpdateAssetDetail": "詳細情報の設定", "AddSuccessMsg": "追加に成功しました", + "AddFailMsg": "追加に失敗しました", "Auth": "認証", "bind": "紐付け", "unbind": "バインド解除", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 925953813..26e085d7e 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -497,6 +497,7 @@ "Task": "任务", "UpdateAssetDetail": "配置更多信息", "AddSuccessMsg": "添加成功", + "AddFailMsg": "添加失败", "Auth": "认证", "bind": "绑定", "unbind": "解绑", diff --git a/src/views/assets/Asset/AssetDetail/Account.vue b/src/views/assets/Asset/AssetDetail/Account.vue index b80cb2290..d19262991 100644 --- a/src/views/assets/Asset/AssetDetail/Account.vue +++ b/src/views/assets/Asset/AssetDetail/Account.vue @@ -77,9 +77,9 @@ export default { this.$axios.post(`/api/v1/accounts/accounts/`, data).then(() => { this.templateDialogVisible = false this.$refs.ListTable.addAccountSuccess() - this.$message.success(this.$tc('common.createSuccessMsg')) + this.$message.success(this.$tc('common.AddSuccessMsg')) }).catch(() => { - this.$message.error(this.$tc('common.createErrorMsg')) + this.$message.error(this.$tc('common.AddFailMsg')) }) } }