Sfoglia il codice sorgente

fix:修改9303接口地址,以及智能体默认全部

hanyang 1 anno fa
parent
commit
395ae54c2a

+ 5 - 4
public/config.js

@@ -4,12 +4,12 @@ window.DMX_VERSION = '1.0.1';
  * API请求地址
  * 配置项最后一个字符 无需是 / 即,无需以 / 结束
  */
-window.API_BASE_URL = 'http://smartai.com:8401';
+window.API_BASE_URL = 'http://192.168.20.119:9301';
 
 /**
  * 对话websocket连接地址
  */
-window.WEBSOCKET_BASE_URL = 'ws://smartai.com:8164';
+window.WEBSOCKET_BASE_URL = 'ws://192.168.20.119:9301';
 
 /**
  * 静态资源地址
@@ -21,12 +21,13 @@ window.ASSETS_BASE_URL = 'http://192.168.20.116';
 /**
  * rgflow 接口地址
  * */
-window.RGFLOW_BASE_URL = 'http://smartai.com:8294';
+// window.RGFLOW_BASE_URL = 'http://smartai.com:8294';
+window.RGFLOW_BASE_URL = 'http://192.168.20.119:11080';
 
 /**
  * dify 接口地址
  * */
-window.DIFY_BASE_URL = 'http://smartai.com:8295';
+window.DIFY_BASE_URL = 'http://192.168.20.119:13002';
 /**
  * 知识问答 引用效果 引用的静态资源地址(docx,pdf等文件)
  * PDF文档和图片链接需要使用此地址

+ 2 - 2
src/modules/intelligent/TopSetting.vue

@@ -118,7 +118,7 @@ const searchText = ref('');
 const target_app = ref(''); // 当前选择的应用
 const target_label_list = ref([]);
 const label_list = ref([]);
-const target_status = ref('1');
+const target_status = ref('3');
 const status_list = ref([
   { value: '1', labelName: '已发布' },
   { value: '0', labelName: '已下线' },
@@ -242,7 +242,7 @@ onMounted(async () => {
   if (Object.keys(cache_searching.value)) {
     searchText.value = cache_searching.value.searchText || '';
     target_app.value = cache_searching.value.target_app || '';
-    target_status.value = cache_searching.value.target_status || '1';
+    target_status.value = cache_searching.value.target_status || '3';
     target_label_list.value = cache_searching.value.target_label_list?.map((item) => Number(item)) || [];
     handleSearch();
   }

+ 6 - 1
src/views/conversation/ConversationChatContainer.vue

@@ -933,7 +933,7 @@ const toggleRight = () => {
   is_show_right_page.value = !is_show_right_page.value;
   if (is_show_right_page.value) {
     const last = chat_display_list.value.at(-1);
-    if (last.client_custom_item_internet_list.length) {
+    if (last.client_custom_item_internet_list?.length) {
       show_web_page.value = true;
       search_list.value = last.client_custom_item_internet_list;
     }
@@ -1443,6 +1443,11 @@ const toSearchPage = (item) => {
 };
 
 const toShowMindMap = async (item) => {
+  // if (show_mind_map.value || is_show_right_page.value) {
+  //   show_mind_map.value = false;
+  //   is_show_right_page.value = false;
+  //   return;
+  // }
   const res = await getHistoryMapData(item.client_custom_chat_message_id);
   if (res.code / 1 === 200) {
     if (res.data.mindmap) {