zhuliu 2 år sedan
förälder
incheckning
9cd400b213
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      RMS-FrontEnd/src/config/index.js

+ 1 - 1
RMS-FrontEnd/src/config/index.js

@@ -3,5 +3,5 @@ export default {
     host: window.location.host,
     staticURL: process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:8084' : (process.env.NODE_ENV === 'test'?'http://192.168.1.24:8084':'http://192.168.1.24:8084'),
     staticURL2: process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:8081' : 'http://139.224.24.90:8081',
-    pasURL:process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:80' : 'http://localhost:8085',
+    pasURL:process.env.NODE_ENV === 'production' ? window.location.protocol+'//'+window.location.hostname+':80' : window.location.protocol+'//'+window.location.hostname+':8085',
 }