diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index a4af00b2..c61b1cce 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -32,6 +32,7 @@ "password_reset_successful": "Password reset successful" }, "dashboard": { + "add_success": "Add Success", "no_data": "No Relevant Content Found", "new_tab": "New Tab", "length_limit64": "Field length must be between 1 and 64", @@ -505,4 +506,4 @@ "back_community": "Restore to Community Edition", "confirm_tips": "Are you sure to restore to Community Edition?" } -} \ No newline at end of file +} diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index 32c3b60b..aea50c1b 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -34,6 +34,7 @@ "password_reset_successful": "重置密码成功" }, "dashboard": { + "add_success": "添加成功", "no_data": "没找到相关内容", "new_tab": "新建Tab", "length_limit64": "字段长度需要在1-64之间", @@ -517,4 +518,4 @@ "back_community": "还原至社区版", "confirm_tips": "确定还原至社区版?" } -} \ No newline at end of file +} diff --git a/frontend/src/views/dashboard/editor/Toolbar.vue b/frontend/src/views/dashboard/editor/Toolbar.vue index 5a6e1906..7b59d3f9 100644 --- a/frontend/src/views/dashboard/editor/Toolbar.vue +++ b/frontend/src/views/dashboard/editor/Toolbar.vue @@ -138,6 +138,10 @@ const addChatChart = (views: any) => { views.forEach((view: any) => { emits('addComponent', 'SQView', cloneDeep(view)) }) + ElMessage({ + type: 'success', + message: t('dashboard.add_success'), + }) } const previewInner = () => {