mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-30 07:06:40 +08:00
fix(styles): fix import.meta.env
explicitly declared import.meta.env type as Env.ImportMeta
This commit is contained in:
parent
bc8dc47d7f
commit
b4d3e32a7e
@ -8,7 +8,7 @@ import { handleRefreshToken, showErrorMsg } from './shared';
|
||||
import type { RequestInstanceState } from './type';
|
||||
|
||||
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>(
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user