소스 검색

接口超时时间改成30s

shaogen1995 3 주 전
부모
커밋
64da3fee80
6개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 0
      后台管理/.env
  2. 3 0
      展示端/.env
  3. 2 2
      展示端/public/index.html
  4. 1 1
      展示端/src/utils/http.ts
  5. 3 0
      展示端首页入口/.env
  6. 3 0
      平板二维码扫码/.env

+ 3 - 0
后台管理/.env

@@ -0,0 +1,3 @@
+# .env.production
+GENERATE_SOURCEMAP = false
+# 关闭映射

+ 3 - 0
展示端/.env

@@ -0,0 +1,3 @@
+# .env.production
+GENERATE_SOURCEMAP = false
+# 关闭映射

+ 2 - 2
展示端/public/index.html

@@ -15,9 +15,9 @@
 
     <script>
       // 测试环境域名
-      const weiXinLoginBackUrlTemp = 'https://sit-hqbooking.4dage.com'
+      // const weiXinLoginBackUrlTemp = 'https://sit-hqbooking.4dage.com'
       // 甲方域名
-      // const weiXinLoginBackUrlTemp =''
+      const weiXinLoginBackUrlTemp = 'https://healthy.hengqin.gov.cn'
     </script>
 
     <!--

+ 1 - 1
展示端/src/utils/http.ts

@@ -26,7 +26,7 @@ declare module 'axios' {
 // 创建 axios 实例
 const http = axios.create({
   baseURL: `${baseURL}${baseFlag ? '/api/' : ''}`,
-  timeout: 10000
+  timeout: 30000
 })
 
 let axajInd = 0

+ 3 - 0
展示端首页入口/.env

@@ -0,0 +1,3 @@
+# .env.production
+GENERATE_SOURCEMAP = false
+# 关闭映射

+ 3 - 0
平板二维码扫码/.env

@@ -0,0 +1,3 @@
+# .env.production
+GENERATE_SOURCEMAP = false
+# 关闭映射