ソースを参照

更改生产环境路由

cornyuan 7 ヶ月 前
コミット
eb1ba4f1cd
4 ファイル変更10 行追加5 行削除
  1. 2 1
      config/index.js
  2. 1 1
      src/router/index.js
  3. 4 1
      src/utils/httpRequest.js
  4. 3 2
      static/config/index-prod.js

+ 2 - 1
config/index.js

@@ -16,7 +16,8 @@ module.exports = {
       '/sqx_fast': {
       '/sqx_fast': {
 			// target: 'http://192.168.0.133:7155/sqx_fast/',
 			// target: 'http://192.168.0.133:7155/sqx_fast/',
 			// target: 'https://zpadmin.xianmaxiong.com/sqx_fast/',
 			// target: 'https://zpadmin.xianmaxiong.com/sqx_fast/',
-			target: 'http://yizhizan.edccc.cn/sqx_fast/',
+      target: 'https://manger.bosszan.com/sqx_fast/',
+      // target: 'http://yizhizan.edccc.cn/sqx_fast/',
 			changeOrigin: true,
 			changeOrigin: true,
 			pathRewrite: {
 			pathRewrite: {
 				'^/sqx_fast': ''
 				'^/sqx_fast': ''

+ 1 - 1
src/router/index.js

@@ -119,7 +119,7 @@ router.beforeEach((to, from, next) => {
 		next()
 		next()
 	} else {
 	} else {
 		http({
 		http({
-			url: http.adornUrl('/sys/menu/nav'),
+			url: http.adornUrl('sys/menu/nav'),
 			method: 'get',
 			method: 'get',
 			params: http.adornParams()
 			params: http.adornParams()
 		}).then(({data}) => {
 		}).then(({data}) => {

+ 4 - 1
src/utils/httpRequest.js

@@ -43,9 +43,12 @@ http.interceptors.response.use(response => {
 http.adornUrl = (actionName) => {
 http.adornUrl = (actionName) => {
   // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
   // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
   // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
   // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
-	return 'http://yizhizan.edccc.cn/sqx_fast/' + actionName
+	// return 'http://yizhizan.edccc.cn/sqx_fast/' + actionName
+  return 'https://manger.bosszan.com/sqx_fast/' + actionName
 	// return 'https://zpadmin.xianmaxiong.com/sqx_fast/' + actionName
 	// return 'https://zpadmin.xianmaxiong.com/sqx_fast/' + actionName
 	// return '/sqx_fast/' + actionName
 	// return '/sqx_fast/' + actionName
+  // return 'http://localhost:7155/sqx_fast/' + actionName
+
 }
 }
 
 
 http.adornWss = (actionName) => {
 http.adornWss = (actionName) => {

+ 3 - 2
static/config/index-prod.js

@@ -5,8 +5,9 @@
   window.SITE_CONFIG = {};
   window.SITE_CONFIG = {};
 
 
   // api接口请求地址
   // api接口请求地址
-  window.SITE_CONFIG['baseUrl'] = 'https://ditanxiong.gomyorder.cn/sqx_fast';
-  
+  window.SITE_CONFIG['baseUrl'] = 'https://manger.bosszan.com/sqx_fast';
+  // window.SITE_CONFIG['baseUrl'] = 'https://ditanxiong.gomyorder.cn/sqx_fast';
+
   // cdn地址 = 域名 + 版本号
   // cdn地址 = 域名 + 版本号
   window.SITE_CONFIG['domain']  = './'; // 域名
   window.SITE_CONFIG['domain']  = './'; // 域名
   window.SITE_CONFIG['version'] = '';   // 版本号(年月日时分)
   window.SITE_CONFIG['version'] = '';   // 版本号(年月日时分)