perf: 优化使用离线图标后运行慢问题
This commit is contained in:
16
types/env.d.ts
vendored
16
types/env.d.ts
vendored
@@ -7,22 +7,6 @@ declare module '*.vue' {
|
||||
export default component
|
||||
}
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_NODE_ENV: string
|
||||
readonly VITE_APP_TITLE: string
|
||||
readonly VITE_API_BASE_PATH: string
|
||||
readonly VITE_BASE_PATH: string
|
||||
readonly VITE_DROP_DEBUGGER: string
|
||||
readonly VITE_DROP_CONSOLE: string
|
||||
readonly VITE_SOURCEMAP: string
|
||||
readonly VITE_OUT_DIR: string
|
||||
readonly VITE_USE_BUNDLE_ANALYZER: string
|
||||
readonly VITE_USE_ALL_ELEMENT_PLUS_STYLE: string
|
||||
readonly VITE_USE_MOCK: string
|
||||
readonly VITE_USE_CSS_SPLIT: string
|
||||
readonly VITE_USE_ONLINE_ICON: string
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
|
||||
17
types/global.d.ts
vendored
17
types/global.d.ts
vendored
@@ -66,4 +66,21 @@ declare global {
|
||||
topHeaderHoverColor?: string
|
||||
topToolBorderColor?: string
|
||||
}
|
||||
|
||||
declare interface ImportMetaEnv {
|
||||
readonly VITE_NODE_ENV: string
|
||||
readonly VITE_APP_TITLE: string
|
||||
readonly VITE_API_BASE_PATH: string
|
||||
readonly VITE_BASE_PATH: string
|
||||
readonly VITE_DROP_DEBUGGER: string
|
||||
readonly VITE_DROP_CONSOLE: string
|
||||
readonly VITE_SOURCEMAP: string
|
||||
readonly VITE_OUT_DIR: string
|
||||
readonly VITE_USE_BUNDLE_ANALYZER: string
|
||||
readonly VITE_USE_ALL_ELEMENT_PLUS_STYLE: string
|
||||
readonly VITE_USE_MOCK: string
|
||||
readonly VITE_USE_CSS_SPLIT: string
|
||||
readonly VITE_USE_ONLINE_ICON: string
|
||||
readonly VITE_ICON_PREFIX: string
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user