diff --git a/frontend/src/assets/svg/icon_warning_filled.svg b/frontend/src/assets/svg/icon_warning_filled.svg new file mode 100644 index 00000000..045912f3 --- /dev/null +++ b/frontend/src/assets/svg/icon_warning_filled.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index a943f1d6..fe6f774b 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -224,6 +224,8 @@ "custom_notes": "Custom notes", "field_type": "Field type", "field_name": "Field name", + "copy": "Copy", + "the_original_one": "Are you sure you want to restore the password to the original one?", "relevant_content_found": "No relevant content found", "please_enter": "Please enter", "Please_select": "Please select", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index b175b1bd..6a57811e 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -223,6 +223,8 @@ "edit": "编辑", "source_connection_failed": "数据源连接失败", "confirm": "确定", + "copy": "复制", + "the_original_one": "确认恢复为初始密码吗?", "enabled_status": "启用状态", "custom_notes": "自定义备注", "field_type": "字段类型", diff --git a/frontend/src/views/system/user/User.vue b/frontend/src/views/system/user/User.vue index 128a9b8e..deb5e900 100644 --- a/frontend/src/views/system/user/User.vue +++ b/frontend/src/views/system/user/User.vue @@ -110,10 +110,57 @@ :content="$t('common.reset_password')" placement="top" > - + + +
+
+ + + + + + {{ t('datasource.the_original_one') }} +
+
+ SQLBot@123456 + {{ + t('datasource.copy') + }} +
+
+ {{ + t('common.cancel') + }} + + {{ t('datasource.confirm') }} + +
+
+