浏览代码

fix: env环境配置

szr190 2 月之前
父节点
当前提交
6397c16a1c
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 5 5
      .env.production
  2. 1 1
      src/composables/index.ts

+ 5 - 5
.env.production

@@ -6,12 +6,12 @@
6
  # @Description: 生产环境
6
  # @Description: 生产环境
7
 ### 
7
 ### 
8
 # 接口地址
8
 # 接口地址
9
-VITE_BASE_URL="https://new.hqhuitong.com/api"
9
+VITE_BASE_URL="https://shenhai.hqhuitong.com/api"
10
 # 文件地址
10
 # 文件地址
11
-VITE_OSS_URL='https://new.hqhuitong.com'
11
+VITE_OSS_URL='https://shenhai.hqhuitong.com'
12
 # 文件桶
12
 # 文件桶
13
-VITE_BARREL_URL="/smartpark/"
13
+VITE_BARREL_URL="/shenhaigaosu/"
14
 # websocket地址
14
 # websocket地址
15
-VITE_SOCKET_URL='ws://new.hqhuitong.com/websocket?Authorization=Bearer%20'
15
+VITE_SOCKET_URL='wss://shenhai.hqhuitong.com/websocket?Authorization=Bearer%20'
16
 # 前端地址
16
 # 前端地址
17
-VITE_FRONT_URL='https://new.hqhuitong.com'
17
+VITE_FRONT_URL='https://shenhai.hqhuitong.com'

+ 1 - 1
src/composables/index.ts

@@ -6,7 +6,7 @@ export const useGlobal = () => {
6
   // 文件路径前缀
6
   // 文件路径前缀
7
   const pathPre: string = import.meta.env.VITE_OSS_URL + import.meta.env.VITE_BARREL_URL
7
   const pathPre: string = import.meta.env.VITE_OSS_URL + import.meta.env.VITE_BARREL_URL
8
   // Minio地址配置
8
   // Minio地址配置
9
-  const minioUrl: string = import.meta.env.VITE_MINIO_URL
9
+  const minioUrl: string = pathPre + '/app'
10
   // 整数最大值
10
   // 整数最大值
11
   const numberMax: number = 9999999999
11
   const numberMax: number = 9999999999
12
   // 小数最大值
12
   // 小数最大值