Skip to content

Commit

Permalink
fix(frontend): 账号创建不允许特殊账号名 TencentBlueKing#8162
Browse files Browse the repository at this point in the history
  • Loading branch information
3octaves committed Nov 29, 2024
1 parent b4f6ecd commit 3b40afa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dbm-ui/frontend/src/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -3657,6 +3657,7 @@
"同主机关联的其他集群,勾选后一并添加": "同主机关联的其他集群,勾选后一并添加",
"点击上传": "点击上传",
"请选择本地 SQL 文件": "请选择本地 SQL 文件",
"不允许使用特殊账号名称n": "不允许使用特殊账号名称 {n}",
"这行勿动!新增翻译请在上一行添加!": ""

}
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,9 @@
[AccountTypes.MONGODB]: MongoConfig.special_account,
[AccountTypes.SQLSERVER]: SqlserverConfig.special_account,
};
if (specialAccountMap[props.accountType].includes(value)) {
return '特殊账号';
}
return true;
return !specialAccountMap[props.accountType].includes(value);
},
message: t('不允许使用特殊账号名称n', { n: state.formdata.user }),
},
],
password: [
Expand Down

0 comments on commit 3b40afa

Please sign in to comment.