style(系统管理): 更改重置admin密码时的文案

https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001038714
This commit is contained in:
Jianguo-Genius 2024-04-08 15:59:36 +08:00 committed by 刘瑞斌
parent dd5a5d1a8e
commit 69395aa465
3 changed files with 8 additions and 1 deletions

View File

@ -422,10 +422,15 @@
title = t('system.user.batchResetPswTip', { count: params?.currentSelectCount || tableSelected.value.length }); title = t('system.user.batchResetPswTip', { count: params?.currentSelectCount || tableSelected.value.length });
selectIds = tableSelected.value as string[]; selectIds = tableSelected.value as string[];
} }
let content = t('system.user.resetPswContent');
if (record && record.id === 'admin') {
content = t('system.user.resetAdminPswContent');
}
openModal({ openModal({
type: 'warning', type: 'warning',
title, title,
content: t('system.user.resetPswContent'), content,
okText: t('system.user.resetPswConfirm'), okText: t('system.user.resetPswConfirm'),
cancelText: t('system.user.resetPswCancel'), cancelText: t('system.user.resetPswCancel'),
onBeforeOk: async () => { onBeforeOk: async () => {

View File

@ -32,6 +32,7 @@ export default {
'system.user.resetPswTip': 'Reset the password of {name} to its initial password?', 'system.user.resetPswTip': 'Reset the password of {name} to its initial password?',
'system.user.batchResetPswTip': 'Reset the passwords of the selected {count} users to their initial passwords?', 'system.user.batchResetPswTip': 'Reset the passwords of the selected {count} users to their initial passwords?',
'system.user.resetPswContent': "The initial password is the user's mailbox, which will take effect at the next login", 'system.user.resetPswContent': "The initial password is the user's mailbox, which will take effect at the next login",
'system.user.resetAdminPswContent': 'The initial password is metersphere, which will take effect at the next login',
'system.user.resetPswConfirm': 'Reset', 'system.user.resetPswConfirm': 'Reset',
'system.user.resetPswCancel': 'Cancel', 'system.user.resetPswCancel': 'Cancel',
'system.user.resetPswSuccess': 'Reset successfully', 'system.user.resetPswSuccess': 'Reset successfully',

View File

@ -31,6 +31,7 @@ export default {
'system.user.resetPswTip': '是否将 {name} 的密码重置为初始密码?', 'system.user.resetPswTip': '是否将 {name} 的密码重置为初始密码?',
'system.user.batchResetPswTip': '是否将选中的 {count} 个用户的密码重置为初始密码?', 'system.user.batchResetPswTip': '是否将选中的 {count} 个用户的密码重置为初始密码?',
'system.user.resetPswContent': '初始的密码为用户邮箱,下次登录时生效', 'system.user.resetPswContent': '初始的密码为用户邮箱,下次登录时生效',
'system.user.resetAdminPswContent': '初始的密码为metersphere下次登录时生效',
'system.user.resetPswConfirm': '确认重置', 'system.user.resetPswConfirm': '确认重置',
'system.user.resetPswCancel': '取消', 'system.user.resetPswCancel': '取消',
'system.user.resetPswSuccess': '重置成功', 'system.user.resetPswSuccess': '重置成功',