ソースを参照

fix:区分接口地址和页面访问地址

hanyang 1 年間 前
コミット
7cf101118e
2 ファイル変更3 行追加2 行削除
  1. 2 1
      public/config.js
  2. 1 1
      src/modules/home/agent_card.vue

+ 2 - 1
public/config.js

@@ -5,7 +5,8 @@ window.DMX_VERSION = '1.0.1';
  * 配置项最后一个字符 无需是 / 即,无需以 / 结束
  */
 // window.API_BASE_URL = window.VITE_API_BASE_URL;
-window.API_BASE_URL = 'http://smartai.com:8163';
+window.API_BASE_URL = 'http://smartai.com:8163'; // 接口访问地址
+window.WEB_BASE_URL = 'http://smartai.com:8163'; // 页面跳转地址
 // window.API_BASE_URL = 'http://192.168.20.119:13002';
 window.featureConfigs = [
   {

+ 1 - 1
src/modules/home/agent_card.vue

@@ -48,7 +48,7 @@ const agent_list = ref([]);
 const filter_agent_list = ref([]);
 const agentsListContainer = ref(null);
 const selectedCategory = ref('全部'); // 默认选中“全部”
-const baseurl = getConfigField('API_BASE_URL');
+const baseurl = getConfigField('WEB_BASE_URL');
 const page = ref(1); // 当前页码
 const limit = 30; // 每页显示的数量