Browse Source

接口切换

caojunjie 4 years ago
parent
commit
14a054b4b2
1 changed files with 4 additions and 4 deletions
  1. 4 4
      common/request/request.js

+ 4 - 4
common/request/request.js

@@ -20,16 +20,16 @@ export function request(config) {
 	// uEnvDev;开发者模式,点击运行
 	if (process.env.NODE_ENV === 'development') {
 	    //测试接口
-		// baseURL = "http://b2bcnapi.sailuntire.com/allstell/test/app"
+		baseURL = "http://b2bcnapi.sailuntire.com/allstell/test/app"
 		//正式接口
-		baseURL = "http://b2bcnapi.sailuntire.com/allstell/app";
+		// baseURL = "http://b2bcnapi.sailuntire.com/allstell/app";
 	}
 	// uEnvProd;生产模式,点击发行
 	if (process.env.NODE_ENV === 'production') {
 	    //测试接口
-		baseURL = "http://b2bcnapi.sailuntire.com/allstell/test/app"
+		// baseURL = "http://b2bcnapi.sailuntire.com/allstell/test/app"
 		//正式接口
-		// baseURL = "http://b2bcnapi.sailuntire.com/allstell/app";
+		baseURL = "http://b2bcnapi.sailuntire.com/allstell/app";
 	};
     let newVar = axios.create({
         baseURL: baseURL,