Skip to content

Commit 103a632

Browse files
committed
fix(use-request): fix the problem that environment variables cannot be read normally
1 parent 2e7bf2d commit 103a632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useRequest/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import AxiosInterceptor from './interceptor'
33

44
export const useRequest = () => {
55
const axiosInstance = Axios.create({
6-
baseURL: process.env.VUE_APP_BASE_URL,
6+
baseURL: import.meta.env.VUE_APP_BASE_URL,
77
headers: {
88
'Content-Type': 'application/json'
99
}

0 commit comments

Comments
 (0)