diff --git a/frontend/src/views/setting/system/user/index.vue b/frontend/src/views/setting/system/user/index.vue index e1f14bf636..235111ad40 100644 --- a/frontend/src/views/setting/system/user/index.vue +++ b/frontend/src/views/setting/system/user/index.vue @@ -422,10 +422,15 @@ title = t('system.user.batchResetPswTip', { count: params?.currentSelectCount || tableSelected.value.length }); selectIds = tableSelected.value as string[]; } + + let content = t('system.user.resetPswContent'); + if (record && record.id === 'admin') { + content = t('system.user.resetAdminPswContent'); + } openModal({ type: 'warning', title, - content: t('system.user.resetPswContent'), + content, okText: t('system.user.resetPswConfirm'), cancelText: t('system.user.resetPswCancel'), onBeforeOk: async () => { diff --git a/frontend/src/views/setting/system/user/locale/en-US.ts b/frontend/src/views/setting/system/user/locale/en-US.ts index ddc8aa932c..b559214c51 100644 --- a/frontend/src/views/setting/system/user/locale/en-US.ts +++ b/frontend/src/views/setting/system/user/locale/en-US.ts @@ -32,6 +32,7 @@ export default { '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.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.resetPswCancel': 'Cancel', 'system.user.resetPswSuccess': 'Reset successfully', diff --git a/frontend/src/views/setting/system/user/locale/zh-CN.ts b/frontend/src/views/setting/system/user/locale/zh-CN.ts index e78ddb176d..390f9004ea 100644 --- a/frontend/src/views/setting/system/user/locale/zh-CN.ts +++ b/frontend/src/views/setting/system/user/locale/zh-CN.ts @@ -31,6 +31,7 @@ export default { 'system.user.resetPswTip': '是否将 {name} 的密码重置为初始密码?', 'system.user.batchResetPswTip': '是否将选中的 {count} 个用户的密码重置为初始密码?', 'system.user.resetPswContent': '初始的密码为用户邮箱,下次登录时生效', + 'system.user.resetAdminPswContent': '初始的密码为metersphere,下次登录时生效', 'system.user.resetPswConfirm': '确认重置', 'system.user.resetPswCancel': '取消', 'system.user.resetPswSuccess': '重置成功',