Browse Source

动态获取域名和协议

Qukatie 4 weeks ago
parent
commit
80f144100a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/config/website.js

+ 2 - 1
src/config/website.js

@@ -45,5 +45,6 @@ export default {
   // 流程设计器地址
   flowDesignUrl: 'http://192.168.1.177:9999',
   // 报表设计器地址(cloud端口为8108,boot端口为80)
-  reportUrl: 'http://121.37.83.47:80/ureport',
+
+  reportUrl: window.location.protocol + '//' + (window.location.hostname=='localhost'?'121.37.83.47':window.location.hostname)+'/ureport',
 }