Kaynağa Gözat

配置文件修改

songxy 1 ay önce
ebeveyn
işleme
abd5a55c3f
2 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  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',