first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
|
||||
declare module '*.scss' {
|
||||
const css: Record<string, string>
|
||||
export default css
|
||||
}
|
||||
|
||||
interface ImportMetaEnv {
|
||||
/** 应用标题 */
|
||||
readonly VITE_APP_TITLE: string
|
||||
/** 部署基础路径 */
|
||||
readonly VITE_APP_BASE_URL: string
|
||||
/** 接口前缀,本地开发经 Vite proxy 转发 */
|
||||
readonly VITE_APP_BASE_API: string
|
||||
/** 接口真实地址(仅 mock 关闭、未走代理时使用) */
|
||||
readonly VITE_APP_API_URL: string
|
||||
/** 是否启用本地 mock */
|
||||
readonly VITE_USE_MOCK: string
|
||||
/** 端口 */
|
||||
readonly VITE_APP_PORT: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
||||
Reference in New Issue
Block a user