菜单布局等初步完成
This commit is contained in:
12
schoolNewsWeb/src/env.d.ts
vendored
12
schoolNewsWeb/src/env.d.ts
vendored
@@ -1,5 +1,17 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
// Vite 环境变量类型定义
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_API_BASE_URL: string
|
||||
readonly VITE_APP_TITLE: string
|
||||
readonly VITE_APP_MODE?: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
||||
|
||||
// 兼容旧的 process.env 写法(如果代码中有使用)
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
|
||||
Reference in New Issue
Block a user