diff --git a/ui/src/assets/fx/langsearch/detail.md b/ui/public/fx/bochaai/detail.md similarity index 75% rename from ui/src/assets/fx/langsearch/detail.md rename to ui/public/fx/bochaai/detail.md index 0ca6556b1..327da843b 100644 --- a/ui/src/assets/fx/langsearch/detail.md +++ b/ui/public/fx/bochaai/detail.md @@ -6,10 +6,10 @@ 1. 获取API Key  在[博查开放平台](https://open.bochaai.com/overview) 上申请 API 密钥。 - ![API Key](/src/assets/fx/img/langsearch_APIKey.jpg) + ![API Key](/fx/img/bocha_APIKey.jpg) 2. 在函数库中配置 在函数库的博查函数面板中,点击 … > 启用参数,填写 API 密钥,并启用博查函数。 - ![启动参数](/src/assets/fx/img/langsearch_setting.jpg) + ![启动参数](/fx/img/bocha_setting.jpg) 3. 在应用中使用 在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。 - ![应用中使用](/src/assets/fx/img/langsearch_app_used.jpg) + ![应用中使用](/fx/img/bocha_app_used.jpg) diff --git a/ui/src/assets/fx/bochaai/icon.png b/ui/public/fx/bochaai/icon.png similarity index 100% rename from ui/src/assets/fx/bochaai/icon.png rename to ui/public/fx/bochaai/icon.png diff --git a/ui/src/assets/fx/google_search/detail.md b/ui/public/fx/google_search/detail.md similarity index 70% rename from ui/src/assets/fx/google_search/detail.md rename to ui/public/fx/google_search/detail.md index 42bc23664..72d7143a8 100644 --- a/ui/src/assets/fx/google_search/detail.md +++ b/ui/public/fx/google_search/detail.md @@ -6,17 +6,17 @@ Google 搜索工具是一个实时 API,可提取搜索引擎结果,提供来 1. 创建 Google Custom Search Engine 在[Programmable Search Engine](https://programmablesearchengine.google.com/)中 添加 Search Engine - ![google 创建引擎](/src/assets/fx/img/google_AddSearchEngine.jpg) + ![google 创建引擎](/fx/img/google_AddSearchEngine.jpg) 2. 获取cx参数 进入添加引擎,在【基本】菜单中获取搜索引擎的ID,即cx。 - ![google cx ](/src/assets/fx/img/google_cx.jpg) 3.获取 API Key + ![google cx ](/fx/img/google_cx.jpg) 3.获取 API Key 打开 https://developers.google.com/custom-search/v1/overview?hl=zh-cn,获取API Key。 - ![google API Key](/src/assets/fx/img/google_APIKey.jpg) + ![google API Key](/fx/img/google_APIKey.jpg) 3. 配置启动参数 在Google搜索函数的启动参数中填写配置以上参数。 - ![启动参数](/src/assets/fx/img/google_setting.jpg) + ![启动参数](/fx/img/google_setting.jpg) 4. 在应用中使用 在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。 - ![应用中使用](/src/assets/fx/img/google_app_used.jpg) + ![应用中使用](/fx/img/google_app_used.jpg) diff --git a/ui/src/assets/fx/google_search/icon.png b/ui/public/fx/google_search/icon.png similarity index 100% rename from ui/src/assets/fx/google_search/icon.png rename to ui/public/fx/google_search/icon.png diff --git a/ui/src/assets/fx/img/bocha_APIKey.jpg b/ui/public/fx/img/bocha_APIKey.jpg similarity index 100% rename from ui/src/assets/fx/img/bocha_APIKey.jpg rename to ui/public/fx/img/bocha_APIKey.jpg diff --git a/ui/src/assets/fx/img/bocha_app_used.jpg b/ui/public/fx/img/bocha_app_used.jpg similarity index 100% rename from ui/src/assets/fx/img/bocha_app_used.jpg rename to ui/public/fx/img/bocha_app_used.jpg diff --git a/ui/src/assets/fx/img/bocha_setting.jpg b/ui/public/fx/img/bocha_setting.jpg similarity index 100% rename from ui/src/assets/fx/img/bocha_setting.jpg rename to ui/public/fx/img/bocha_setting.jpg diff --git a/ui/src/assets/fx/img/google_APIKey.jpg b/ui/public/fx/img/google_APIKey.jpg similarity index 100% rename from ui/src/assets/fx/img/google_APIKey.jpg rename to ui/public/fx/img/google_APIKey.jpg diff --git a/ui/src/assets/fx/img/google_AddSearchEngine.jpg b/ui/public/fx/img/google_AddSearchEngine.jpg similarity index 100% rename from ui/src/assets/fx/img/google_AddSearchEngine.jpg rename to ui/public/fx/img/google_AddSearchEngine.jpg diff --git a/ui/src/assets/fx/img/google_app_used.jpg b/ui/public/fx/img/google_app_used.jpg similarity index 100% rename from ui/src/assets/fx/img/google_app_used.jpg rename to ui/public/fx/img/google_app_used.jpg diff --git a/ui/src/assets/fx/img/google_cx.jpg b/ui/public/fx/img/google_cx.jpg similarity index 100% rename from ui/src/assets/fx/img/google_cx.jpg rename to ui/public/fx/img/google_cx.jpg diff --git a/ui/src/assets/fx/img/google_setting.jpg b/ui/public/fx/img/google_setting.jpg similarity index 100% rename from ui/src/assets/fx/img/google_setting.jpg rename to ui/public/fx/img/google_setting.jpg diff --git a/ui/src/assets/fx/img/langsearch_APIKey.jpg b/ui/public/fx/img/langsearch_APIKey.jpg similarity index 100% rename from ui/src/assets/fx/img/langsearch_APIKey.jpg rename to ui/public/fx/img/langsearch_APIKey.jpg diff --git a/ui/src/assets/fx/img/langsearch_app_used.jpg b/ui/public/fx/img/langsearch_app_used.jpg similarity index 100% rename from ui/src/assets/fx/img/langsearch_app_used.jpg rename to ui/public/fx/img/langsearch_app_used.jpg diff --git a/ui/src/assets/fx/img/langsearch_setting.jpg b/ui/public/fx/img/langsearch_setting.jpg similarity index 100% rename from ui/src/assets/fx/img/langsearch_setting.jpg rename to ui/public/fx/img/langsearch_setting.jpg diff --git a/ui/src/assets/fx/bochaai/detail.md b/ui/public/fx/langsearch/detail.md similarity index 71% rename from ui/src/assets/fx/bochaai/detail.md rename to ui/public/fx/langsearch/detail.md index dbbf940c9..369b274f3 100644 --- a/ui/src/assets/fx/bochaai/detail.md +++ b/ui/public/fx/langsearch/detail.md @@ -6,10 +6,10 @@ 1. 获取API Key  在[博查开放平台](https://open.bochaai.com/overview) 上申请 API 密钥。 - ![API Key](/src/assets/fx/img/bocha_APIKey.jpg) -1. 在函数库中配置 + ![API Key](/fx/img/langsearch_APIKey.jpg) +2. 在函数库中配置 在函数库的博查函数面板中,点击 … > 启用参数,填写 API 密钥,并启用博查函数。 - ![启动参数](/src/assets/fx/img/bocha_setting.jpg) -1. 在应用中使用 + ![启动参数](/fx/img/langsearch_setting.jpg) +3. 在应用中使用 在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。 - ![应用中使用](/src/assets/fx/img/bocha_app_used.jpg) + ![应用中使用](/fx/img/langsearch_app_used.jpg) diff --git a/ui/src/assets/fx/langsearch/icon.png b/ui/public/fx/langsearch/icon.png similarity index 100% rename from ui/src/assets/fx/langsearch/icon.png rename to ui/public/fx/langsearch/icon.png diff --git a/ui/src/assets/fx/mysql/icon.png b/ui/public/fx/mysql/icon.png similarity index 100% rename from ui/src/assets/fx/mysql/icon.png rename to ui/public/fx/mysql/icon.png diff --git a/ui/src/assets/fx/postgresql/icon.png b/ui/public/fx/postgresql/icon.png similarity index 100% rename from ui/src/assets/fx/postgresql/icon.png rename to ui/public/fx/postgresql/icon.png diff --git a/ui/src/views/application-overview/component/EmbedDialog.vue b/ui/src/views/application-overview/component/EmbedDialog.vue index 428a25224..379339aba 100644 --- a/ui/src/views/application-overview/component/EmbedDialog.vue +++ b/ui/src/views/application-overview/component/EmbedDialog.vue @@ -7,7 +7,6 @@ :close-on-click-modal="false" :close-on-press-escape="false" > -
@@ -104,7 +103,9 @@ const source3 = ref('') const urlParams1 = computed(() => (props.apiInputParams ? '?' + props.apiInputParams : '')) const urlParams2 = computed(() => (props.apiInputParams ? '&' + props.apiInputParams : '')) - +const urlParams3 = computed(() => + props.apiInputParams ? '?mode=mobile&' + props.apiInputParams : '?mode=mobile' +) watch(dialogVisible, (bool) => { if (!bool) { source1.value = '' @@ -131,8 +132,8 @@ src="${window.location.origin}/api/application/embed?protocol=${window.location. )}&host=${window.location.host}&token=${val}${urlParams2.value}"> <\/script> ` - source3.value = `