Browse Source

线上地址修改

hjr 3 tuần trước cách đây
mục cha
commit
57b11e7e9b
4 tập tin đã thay đổi với 10 bổ sung6 xóa
  1. 1 1
      .env.development
  2. 2 1
      .env.production
  3. 1 1
      src/utils/system/request.js
  4. 6 3
      vite.config.js

+ 1 - 1
.env.development

@@ -7,8 +7,8 @@ ENV = 'development'
 # VITE_BASE_URL = 'http://192.168.1.97:25777'
  VITE_BASE_URL = ''
 
+# VITE_BASE_URL = 'https://agency.yqearns.com/'
 # VITE_BASE_URL = 'https://test.admin.zcb.ytpm.net/'
-
 # 本地 
 # VITE_BASE_URL = 'http://192.168.1.9:25001'
 # VITE_BASE_URL = 'http://192.168.1.159:25001'

+ 2 - 1
.env.production

@@ -1,4 +1,5 @@
 ENV = 'production'
- VITE_BASE_URL = 'https://test.admin.zcb.ytpm.net/'
+ VITE_BASE_URL = 'https://agency.yqearns.com/'
+# VITE_BASE_URL = 'https://test.admin.zcb.ytpm.net/'
 # VITE_BASE_URL = 'http://119.45.71.139:25001'
 # VITE_BASE_URL = 'http://advise.ytmdm.com/gateway'

+ 1 - 1
src/utils/system/request.js

@@ -13,7 +13,7 @@ const service = axios.create({
 // 各服务对应的地址
 const baseURLs = {
   oauth: isDev ?'/oauth':'/pro-oauth',
-  agency:isDev?'/api':'/pro-oauth',//'/pro-agency', // https://test.admin.zcb.ytpm.net/pro-api
+  agency:isDev?'/api':'/pro-agency',//'/pro-agency', // https://test.admin.zcb.ytpm.net/pro-api
   api: '/pro-api' ,
   attach:'http://advise.ytmdm.com/attach',
 }

+ 6 - 3
vite.config.js

@@ -54,7 +54,8 @@ export default ({ command }) => {
 		  }
 		},
 		'/pro-oauth': {
-		  target: 'https://test.admin.zcb.ytpm.net',
+		  // target: 'https://test.admin.zcb.ytpm.net',
+		  target: 'https://agency.yqearns.com',
 		  changeOrigin: true,
 		  // secure: true,
 		  rewrite: (path) => {
@@ -62,7 +63,8 @@ export default ({ command }) => {
 		  }
 		}, 
 		'/pro-api': {
-		  target: 'https://test.admin.zcb.ytpm.net',
+		  // target: 'https://test.admin.zcb.ytpm.net',
+		  target: 'https://agency.yqearns.com',
 		  changeOrigin: true,
 		   // secure: true,
 			rewrite: (path) => {
@@ -70,7 +72,8 @@ export default ({ command }) => {
 			}
 		},
 		'/pro-agency': {
-		  target: 'https://test.admin.zcb.ytpm.net',
+		  // target: 'https://test.admin.zcb.ytpm.net',
+		  target: 'https://agency.yqearns.com',
 		  changeOrigin: true,
 		  // secure: true,
 		  rewrite: (path) => {