Browse Source

saas del getFirstHost and empty change.bat

shish 6 years ago
parent
commit
317226aed4
2 changed files with 0 additions and 98 deletions
  1. 0 87
      saas/src/config/change.bat
  2. 0 11
      saas/vue.config.js

+ 0 - 87
saas/src/config/change.bat

@@ -1,87 +0,0 @@
-@echo off
-echo start......
-echo,
-set isMobile=business
-set saas=s-
-set business=b-
-set env=env.js
-set pages=pages.json
-set config=config.js
-set uni=uni.scss
-set /a sum=0
-
-for %%m in (*) do (
-	if "%%m"=="s-config.js" (
-		set isMobile=saas
-	)
-)
-
-echo %isMobile%
-
-if "%isMobile%"=="saas" (
-	echo %isMobile%
-	for %%z in (*) do (
-		echo %%z
-		if "%%z"=="config.js" (
-			ren %%z %business%%%z
-			set /a sum+=1
-		)
-		if "%%z"=="env.js" (
-			ren %%z %business%%%z
-			set /a sum+=1
-		)
-	)
-	echo,
-	for %%z in (*) do (
-		echo %%z
-		if "%%z"=="s-config.js" (
-			ren %%z %config%
-			set /a sum+=1
-		)
-		if "%%z"=="s-env.js" (
-			ren %%z %env%
-			set /a sum+=1
-		)
-	)
-) else (
-	echo %isMobile%
-	for %%z in (*) do (
-		echo %%z
-		if "%%z"=="config.js" (
-			ren %%z %saas%%%z
-			set /a sum+=1
-		)
-		if "%%z"=="env.js" (
-			ren %%z %saas%%%z
-			set /a sum+=1
-		)
-	)
-	echo,
-	for %%z in (*) do (
-		echo %%z
-		if "%%z"=="b-config.js" (
-			ren %%z %config%
-			set /a sum+=1
-		)
-		if "%%z"=="b-env.js" (
-			ren %%z %env%
-			set /a sum+=1
-		)
-	)
-)
-echo,
-echo file change success to *********    %isMobile%
-echo,
-echo ******************  ljd  ********************
-echo,
-echo end ******  %sum%  ****** file is change confirm
-echo,
-echo ******************  jmq  ********************
-echo,
-set isMobile=
-set mobile=
-set business=
-set manifest=
-set pages=
-set config=
-set sum=

+ 0 - 11
saas/vue.config.js

@@ -1,13 +1,4 @@
 const path = require('path');
-const getFirstHost = () => {
-	let host = window.location.host;
-	host = host.split('.');
-	host = host.length == 3 ? host[1] : host[0];
-	if (process.env.NODE_ENV == 'development') {
-		return 'huaml';
-	}
-	return host;
-};
 
 const isProduction = process.env.NODE_ENV === 'production';
 
@@ -15,8 +6,6 @@ function resolve(dir) {
 	return path.join(__dirname, dir);
 }
 
-// const hostUrl = `${window.location.protocol}//static.${getFirstHost()}.com`;
-// const hostUrl = `https://static.huaml.com`;
 const hostUrl = ``;
 
 const cdn = {