소스 검색

线上接口地址修改

jackson 11 달 전
부모
커밋
514eec014a
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      src/assets/styles/auth.less
  2. 1 1
      src/config/index.ts

+ 0 - 1
src/assets/styles/auth.less

@@ -62,5 +62,4 @@
   &+button{
     margin-left: 40px;
   }
-
 }

+ 1 - 1
src/config/index.ts

@@ -1,4 +1,4 @@
 export default {
-  baseUrl: 'http://20.189.74.163:3111',
+  baseUrl: import.meta.env.MODE === 'production' ? '' : 'http://20.189.74.163:3111',
   socketUrl: 'ws://20.189.74.163:3102/sub'
 }