fix 修复 环境变量书写错误
This commit is contained in:
		
							
								
								
									
										1
									
								
								src/types/env.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								src/types/env.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -69,6 +69,7 @@ interface ImportMetaEnv { | |||||||
|   VITE_APP_ENV: string; |   VITE_APP_ENV: string; | ||||||
|   VITE_APP_RSA_PUBLIC_KEY: string; |   VITE_APP_RSA_PUBLIC_KEY: string; | ||||||
|   VITE_APP_CLIENT_ID: string; |   VITE_APP_CLIENT_ID: string; | ||||||
|  |   VITE_APP_WEBSOCKET: boolean; | ||||||
| } | } | ||||||
| interface ImportMeta { | interface ImportMeta { | ||||||
|   readonly env: ImportMetaEnv; |   readonly env: ImportMetaEnv; | ||||||
|  | |||||||
| @ -33,7 +33,7 @@ let socketError = 0 as number; // 错误次数 | |||||||
|  |  | ||||||
| // 初始化socket | // 初始化socket | ||||||
| export const initWebSocket = (url: any) => { | export const initWebSocket = (url: any) => { | ||||||
|   if (import.meta.env.VITE_APP_WEBSOCKET) { |   if (!import.meta.env.VITE_APP_WEBSOCKET) { | ||||||
|     return; |     return; | ||||||
|   } |   } | ||||||
|   socketUrl = url; |   socketUrl = url; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 疯狂的狮子Li
					疯狂的狮子Li