Browse Source

部署至dev环境

john.hong 2 years ago
parent
commit
f3ba00fce6
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/App.vue

+ 6 - 1
src/App.vue

@@ -207,10 +207,15 @@ export default {
       window.api = 'api';
     },
     requestInit() {
+      let baseURL = window.profileApi;
+      if (window.location.href.indexOf('tparking.') < 0 ) {
+        baseURL = '/msApi'
+      }
       window.requestms = createAxiosByinterceptors({
         // baseURL: `https://dev-kip-service-internal.kerryonvip.com/`,
         // baseURL: `http://tp.hht.test/`,
-        baseURL: window.profileApi, // TODO: 微服务发布到DEV环境之后取消注释
+        // baseURL: window.profileApi, // TODO: 微服务发布到DEV环境之后取消注释
+        baseURL
         // baseURL: `/msApi`,
       });
     },