EmmaBaBa hai 5 meses
pai
achega
5dcd5c8a3b
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  1. 2 2
      config/index.js
  2. 3 0
      static/config/index.js

+ 2 - 2
config/index.js

@@ -13,7 +13,7 @@ module.exports = {
     // 代理列表, 是否开启代理通过[./dev.env.js]配置
     proxyTable: devEnv.OPEN_PROXY === false ? {} : {
       '/proxyApi': {
-        target: 'http://121.37.47.26:8081/',
+        target: 'http://121.37.47.26:8081',
         changeOrigin: true,
         pathRewrite: {
           '/proxyApi': ''
@@ -21,7 +21,7 @@ module.exports = {
       },
       '/aiApi': {
         // target: 'http://127.0.0.1:8089/',
-        target: 'http://121.37.47.26:8080/',
+        target: 'http://121.37.47.26:8080',
         changeOrigin: true,
         pathRewrite: {
           '/aiApi': ''

+ 3 - 0
static/config/index.js

@@ -7,6 +7,9 @@
   // api接口请求地址
   window.SITE_CONFIG['baseUrl'] = 'http://console.edu.oh-os.com/api';
 
+  // ai接口请求地址
+  window.SITE_CONFIG['aiBaseUrl'] = 'http://console.edu.oh-os.com/ai-api';
+
   // cdn地址 = 域名 + 版本号
   window.SITE_CONFIG['domain']  = './'; // 域名
   window.SITE_CONFIG['version'] = '';   // 版本号(年月日时分)