From f58f831c42e765c9229122a608e2d9ffddbb106d Mon Sep 17 00:00:00 2001
From: Hu Gang <18768366022@163.com>
Date: Wed, 28 May 2025 10:04:42 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BD=E9=99=85=E5=8C=96=E8=A1=A5?=
=?UTF-8?q?=E5=85=85=EF=BC=8C=E8=A7=A3=E5=86=B3=E4=BA=86iframe=E9=80=9A?=
=?UTF-8?q?=E4=BF=A1=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/lang/en.ts | 3 +++
src/i18n/lang/zh-cn.ts | 3 +++
src/store/theme.ts | 2 +-
src/views/app/index.vue | 20 +++++++++++++------
.../components/AssetLibraryDrawer.vue | 9 +++++++--
.../dialogue/components/DialogueSession.vue | 5 ++---
src/views/tools/index.vue | 3 +--
7 files changed, 31 insertions(+), 14 deletions(-)
diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts
index 287e739..ea96539 100644
--- a/src/i18n/lang/en.ts
+++ b/src/i18n/lang/en.ts
@@ -118,6 +118,8 @@ export default {
},
app: {
app_center: 'App Center',
+ flow: 'Flow',
+ agent: 'Agent',
all_select: 'All',
app_name: 'App name',
app_introduction: 'App introduction',
@@ -145,6 +147,7 @@ export default {
app_config: 'App Config',
agent_app: 'Agent App',
mcp_app: 'MCP App',
+ confirm_delete_app: 'Are you sure to delete this application?',
create_or_edit_workflow_first: 'Please create/edit a workflow first',
ui_preview: 'UI Preview',
appName: 'Agent Name',
diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts
index 8958adf..9c524ab 100644
--- a/src/i18n/lang/zh-cn.ts
+++ b/src/i18n/lang/zh-cn.ts
@@ -117,6 +117,8 @@ export default {
},
app: {
app_center: '应用中心',
+ flow: '工作流',
+ agent: '智能体',
all_select: '全部',
app_name: '应用名称',
app_introduction: '应用简介',
@@ -144,6 +146,7 @@ export default {
app_config: '界面配置',
agent_app: '创建智能体应用',
mcp_app: '创建工作流应用',
+ confirm_delete_app: '确定删除此应用吗?',
create_or_edit_workflow_first: '请先创建/编辑工作流',
ui_preview: '界面预览',
appName: '智能体名称',
diff --git a/src/store/theme.ts b/src/store/theme.ts
index be0f5c0..9e7facb 100644
--- a/src/store/theme.ts
+++ b/src/store/theme.ts
@@ -5,7 +5,7 @@ import { onBeforeUnmount, onMounted, ref } from 'vue';
export const useChangeThemeStore = defineStore(
'theme',
() => {
- const theme = ref<'dark' | 'light'>();
+ const theme = ref<'dark' | 'light'>('light');
function updateTheme(t: 'dark' | 'light') {
theme.value = t;
diff --git a/src/views/app/index.vue b/src/views/app/index.vue
index 054efbd..0e4cf4c 100644
--- a/src/views/app/index.vue
+++ b/src/views/app/index.vue
@@ -17,8 +17,8 @@
:suffix-icon="IconCaretDown"
>