fix(styles): fix import.meta.env

explicitly declared import.meta.env type as Env.ImportMeta
This commit is contained in:
wynn-w 2024-05-23 11:14:20 +08:00 committed by GitHub
parent bc8dc47d7f
commit b4d3e32a7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ import { handleRefreshToken, showErrorMsg } from './shared';
import type { RequestInstanceState } from './type'; import type { RequestInstanceState } from './type';
const isHttpProxy = import.meta.env.DEV && import.meta.env.VITE_HTTP_PROXY === 'Y'; const isHttpProxy = import.meta.env.DEV && import.meta.env.VITE_HTTP_PROXY === 'Y';
const { baseURL, otherBaseURL } = getServiceBaseURL(import.meta.env, isHttpProxy); const { baseURL, otherBaseURL } = getServiceBaseURL(<Env.ImportMeta>import.meta.env, isHttpProxy);
export const request = createFlatRequest<App.Service.Response, RequestInstanceState>( export const request = createFlatRequest<App.Service.Response, RequestInstanceState>(
{ {