Forráskód Böngészése

线上环境配置

chenrui 4 éve
szülő
commit
e3d9821bfe
2 módosított fájl, 3 hozzáadás és 3 törlés
  1. 2 2
      App.vue
  2. 1 1
      libs/axios.js

+ 2 - 2
App.vue

@@ -1,8 +1,8 @@
 <script>
 	const uat_URL = 'https://driver.test.sxzxyj.net/gc-driver/' // 预发布
 	// const uat_URL = 'http://192.168.16.103:8304/gc-driver/' // 本地
-	// const pro_URL = 'https://lese.sxzxyj.net/gc-driver/'  // 生产
-	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
+	const pro_URL = 'https://driver.sxzxyj.net/gc-driver/'  // 生产
+	const buildType = 1 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url
 	const envText = ['预发布环境','生产环境']
 	const envTips = process.env.NODE_ENV == 'development' ? envText[0] : envText[buildType]

+ 1 - 1
libs/axios.js

@@ -52,7 +52,7 @@ const request = (opts, hasToken) => {
 								title: '未登录或登录已过期,请重新登录',
 								duration: 5000 
 							})
-						}, 1000)
+						}, 500)
 						setTimeout(function() {
 						  const currentRoute = getRoutePath()
 						  const url = `/pages/login/login?lanuch=${currentRoute.lanuch}&path=` + encodeURIComponent(currentRoute.url)