From d52a2b6411ad21cfb74d10fb386e932e7d937c97 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 6 Nov 2025 14:05:03 +0800 Subject: [PATCH] feat(User Management): The initial password is displayed on the new user page. --- frontend/src/i18n/en.json | 1 + frontend/src/i18n/ko-KR.json | 1 + frontend/src/i18n/zh-CN.json | 4 +++- frontend/src/views/system/user/User.vue | 23 +++++++++++++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 40993925..5578ea6d 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -1,5 +1,6 @@ { "menu": { + "Dashboard1:": "Default password:{msg}", "add_interface_credentials": "Please add interface credentials", "Data Q&A": "Data Q&A", "Data Connections": "Data Sources", diff --git a/frontend/src/i18n/ko-KR.json b/frontend/src/i18n/ko-KR.json index 1ff22322..534c054f 100644 --- a/frontend/src/i18n/ko-KR.json +++ b/frontend/src/i18n/ko-KR.json @@ -1,5 +1,6 @@ { "menu": { + "Dashboard1:": "기본 비밀번호:{msg}", "add_interface_credentials": "인터페이스 자격 증명을 추가하십시오", "Data Q&A": "스마트 데이터 조회", "Data Connections": "데이터 소스", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index bda92d77..a38782ee 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -1,6 +1,8 @@ { "menu": { + "Dashboard1": "默认密码:{msg}", "add_interface_credentials": "请添加接口凭证", + "kkk:": "默认密码:{msg}", "Data Q&A": "智能问数", "Data Connections": "数据源", "Dashboard": "仪表盘", @@ -716,4 +718,4 @@ "input_account": "请输入账号", "redirect_2_auth": "正在跳转至 {0} 认证,{1} 秒..." } -} +} \ No newline at end of file diff --git a/frontend/src/views/system/user/User.vue b/frontend/src/views/system/user/User.vue index 1213a8f4..08e05856 100644 --- a/frontend/src/views/system/user/User.vue +++ b/frontend/src/views/system/user/User.vue @@ -236,6 +236,19 @@ size="600px" :before-close="onFormClose" > +
+ + + + + +
+ {{ t('menu.Dashboard1', { msg: 'SQLBot@123456' }) }} + {{ + t('datasource.copy') + }} +
+
{ }) } +const copyPassword = () => { + copy('SQLBot@123456') + .then(function () { + ElMessage.success(t('embedded.copy_successful')) + }) + .catch(function () { + ElMessage.error(t('embedded.copy_failed')) + }) +} + const setButtonRef = (el: any, row: any) => { row.buttonRef = el }