mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 12:18:43 +08:00 
			
		
		
		
	【优化】移除 env 多余的 VITE_API_BASEPATH 配置项
This commit is contained in:
		
							
								
								
									
										3
									
								
								.env.dev
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								.env.dev
									
									
									
									
									
								
							@@ -12,9 +12,6 @@ VITE_UPLOAD_TYPE=server
 | 
				
			|||||||
# 上传路径
 | 
					# 上传路径
 | 
				
			||||||
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
 | 
					VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 接口前缀
 | 
					 | 
				
			||||||
VITE_API_BASEPATH=/dev-api
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 接口地址
 | 
					# 接口地址
 | 
				
			||||||
VITE_API_URL=/admin-api
 | 
					VITE_API_URL=/admin-api
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,9 +11,6 @@ VITE_UPLOAD_TYPE=server
 | 
				
			|||||||
# 上传路径
 | 
					# 上传路径
 | 
				
			||||||
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
 | 
					VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 接口前缀
 | 
					 | 
				
			||||||
VITE_API_BASEPATH=/dev-api
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 接口地址
 | 
					# 接口地址
 | 
				
			||||||
VITE_API_URL=/admin-api
 | 
					VITE_API_URL=/admin-api
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,9 +11,6 @@ VITE_UPLOAD_TYPE=server
 | 
				
			|||||||
# 上传路径
 | 
					# 上传路径
 | 
				
			||||||
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
 | 
					VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 接口前缀
 | 
					 | 
				
			||||||
VITE_API_BASEPATH=
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 接口地址
 | 
					# 接口地址
 | 
				
			||||||
VITE_API_URL=/admin-api
 | 
					VITE_API_URL=/admin-api
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,9 +11,6 @@ VITE_UPLOAD_TYPE=server
 | 
				
			|||||||
# 上传路径
 | 
					# 上传路径
 | 
				
			||||||
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
 | 
					VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 接口前缀
 | 
					 | 
				
			||||||
VITE_API_BASEPATH=
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 接口地址
 | 
					# 接口地址
 | 
				
			||||||
VITE_API_URL=/admin-api
 | 
					VITE_API_URL=/admin-api
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,9 +11,6 @@ VITE_UPLOAD_TYPE=server
 | 
				
			|||||||
# 上传路径
 | 
					# 上传路径
 | 
				
			||||||
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
 | 
					VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 接口前缀
 | 
					 | 
				
			||||||
VITE_API_BASEPATH=
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# 接口地址
 | 
					# 接口地址
 | 
				
			||||||
VITE_API_URL=/admin-api
 | 
					VITE_API_URL=/admin-api
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,7 +63,7 @@ import { getAccessToken } from '@/utils/auth'
 | 
				
			|||||||
import { Reply } from './types'
 | 
					import { Reply } from './types'
 | 
				
			||||||
const message = useMessage()
 | 
					const message = useMessage()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const UPLOAD_URL = import.meta.env.VITE_API_BASEPATH + '/admin-api/mp/material/upload-temporary'
 | 
					const UPLOAD_URL = import.meta.env.VITE_BASE_URL + '/admin-api/mp/material/upload-temporary'
 | 
				
			||||||
const HEADERS = { Authorization: 'Bearer ' + getAccessToken() } // 设置上传的请求头部
 | 
					const HEADERS = { Authorization: 'Bearer ' + getAccessToken() } // 设置上传的请求头部
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps<{
 | 
					const props = defineProps<{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,7 +67,7 @@ import { Reply } from './types'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const message = useMessage()
 | 
					const message = useMessage()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const UPLOAD_URL = import.meta.env.VITE_API_BASEPATH + '/admin-api/mp/material/upload-temporary'
 | 
					const UPLOAD_URL = import.meta.env.VITE_BASE_URL + '/admin-api/mp/material/upload-temporary'
 | 
				
			||||||
const HEADERS = { Authorization: 'Bearer ' + getAccessToken() } // 设置上传的请求头部
 | 
					const HEADERS = { Authorization: 'Bearer ' + getAccessToken() } // 设置上传的请求头部
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps<{
 | 
					const props = defineProps<{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,7 +58,7 @@ import { Reply } from './types'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const message = useMessage()
 | 
					const message = useMessage()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const UPLOAD_URL = import.meta.env.VITE_API_BASEPATH + '/admin-api/mp/material/upload-temporary'
 | 
					const UPLOAD_URL = import.meta.env.VITE_BASE_URL + '/admin-api/mp/material/upload-temporary'
 | 
				
			||||||
const HEADERS = { Authorization: 'Bearer ' + getAccessToken() }
 | 
					const HEADERS = { Authorization: 'Bearer ' + getAccessToken() }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps<{
 | 
					const props = defineProps<{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -61,7 +61,7 @@ import { getAccessToken } from '@/utils/auth'
 | 
				
			|||||||
import { Reply } from './types'
 | 
					import { Reply } from './types'
 | 
				
			||||||
const message = useMessage()
 | 
					const message = useMessage()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const UPLOAD_URL = import.meta.env.VITE_API_BASEPATH + '/admin-api/mp/material/upload-temporary'
 | 
					const UPLOAD_URL = import.meta.env.VITE_BASE_URL + '/admin-api/mp/material/upload-temporary'
 | 
				
			||||||
const HEADERS = { Authorization: 'Bearer ' + getAccessToken() } // 设置上传的请求头部
 | 
					const HEADERS = { Authorization: 'Bearer ' + getAccessToken() } // 设置上传的请求头部
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps<{
 | 
					const props = defineProps<{
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								types/env.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								types/env.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -17,7 +17,6 @@ interface ImportMetaEnv {
 | 
				
			|||||||
  readonly VITE_APP_DOCALERT_ENABLE: string
 | 
					  readonly VITE_APP_DOCALERT_ENABLE: string
 | 
				
			||||||
  readonly VITE_BASE_URL: string
 | 
					  readonly VITE_BASE_URL: string
 | 
				
			||||||
  readonly VITE_UPLOAD_URL: string
 | 
					  readonly VITE_UPLOAD_URL: string
 | 
				
			||||||
  readonly VITE_API_BASEPATH: string
 | 
					 | 
				
			||||||
  readonly VITE_API_URL: string
 | 
					  readonly VITE_API_URL: string
 | 
				
			||||||
  readonly VITE_BASE_PATH: string
 | 
					  readonly VITE_BASE_PATH: string
 | 
				
			||||||
  readonly VITE_DROP_DEBUGGER: string
 | 
					  readonly VITE_DROP_DEBUGGER: string
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user