Bladeren bron

url设置

fenghaifu 2 jaren geleden
bovenliggende
commit
1809802f10
2 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. 3 1
      public/index.html
  2. 3 3
      vue.config.js

+ 3 - 1
public/index.html

@@ -245,7 +245,9 @@
   <!-- 全局配置 -->
   <script>
     window._CONFIG = {};
-    window._CONFIG['domianURL'] = 'http://127.0.0.1:8090/jeecg-boot';
+    //window._CONFIG['domianURL'] = 'http://127.0.0.1:8090/jeecg-boot'; // 本地测试
+    window._CONFIG['domianURL'] = 'http://106.15.206.14:8087/jeecg-boot';// 测试服务器
+    //window._CONFIG['domianURL'] = 'http://220.191.168.86:18087/jeecg-boot';// 森语外网
     window._CONFIG['casPrefixUrl'] = 'http://cas.example.org:8443/cas';
     window._CONFIG['onlinePreviewDomainURL'] = 'http://fileview.jeecg.com/onlinePreview'
     window._CONFIG['staticDomainURL'] = window._CONFIG['domianURL'] + '/sys/common/static';

+ 3 - 3
vue.config.js

@@ -65,9 +65,9 @@ module.exports = {
         }
       }, */
       '/jeecg-boot': {
-        target: 'http://127.0.0.1:8090', // 请求本地 需要jeecg-boot后台项目
-        // target: 'http://106.15.206.14:8087', // 测试环境
-        // ws: false,
+        //target: 'http://127.0.0.1:8090', // 请求本地 需要jeecg-boot后台项目
+        target: 'http://106.15.206.14:8087', // 测试环境
+        //target: 'http://220.191.168.86:18087', // 森语外网
         changeOrigin: true
       }
     }