songxy преди 1 месец
родител
ревизия
abd5a55c3f
променени са 2 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 2 2
      web_ui/config/index.js
  2. 2 1
      web_ui/static/config.js

+ 2 - 2
web_ui/config/index.js

@@ -13,8 +13,8 @@ module.exports = {
     proxyTable: {
       '/agentai': {
         // target: 'http://lq.lianqiai.cn:23001',
-        // target: 'https://ai.zrzyt.zj.gov.cn/agentai',
-        target: 'http://localhost:8511',
+        target: 'https://ai.zrzyt.zj.gov.cn/agentai',
+        // target: 'http://localhost:8511',
         changeOrigin: true,
         pathRewrite: {
           '^/agentai': ''

+ 2 - 1
web_ui/static/config.js

@@ -1,7 +1,8 @@
 (function (window) {
   window.ApplicationConfig = {
     serverURL: "/server",
-    subscribeUrl: 'http://localhost:8511/subscribe/',
+    // subscribeUrl: 'http://localhost:8511/subscribe/',
+    subscribeUrl: '/agentai',
     queryGeometryUrl: 'http://localhost:8511/queryGeometry',
     kgQueryUrl: 'http://localhost:8511/kgQuery',
     klyzyQueryUrl: 'http://localhost:8511/klyzyQuery',