feat: 网元快速安装多语言翻译

This commit is contained in:
TsMask
2024-05-20 20:18:00 +08:00
parent 624f67ecca
commit 814b7b0058
10 changed files with 285 additions and 340 deletions

View File

@@ -156,22 +156,16 @@ function fnHostAuthorized(row: Record<string, any>) {
if (tabState.confirmLoading) return;
Modal.confirm({
title: '提示',
content: '是否要配置免密直连?',
title: t('common.tipTitle'),
content: t('views.ne.neHost.authRSATip'),
onOk: () => {
tabState.confirmLoading = true;
neHostAuthorizedRSA(row).then(res => {
tabState.confirmLoading = false;
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
content: `操作成功`,
duration: 2,
});
message.success(t('common.operateOk'), 3);
} else {
message.error({
content: `操作失败`,
duration: 2,
});
message.error(t('common.operateErr'), 3);
}
});
},