WEB/env.d.ts
2026-09-10 18:04:04 +08:00

26 lines
898 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/// <reference types="vite/client" />
interface ImportMetaEnv {
/** frontConfig.getByDomain 品牌豁免域名(逗号分隔多个;显式置空=不豁免,未配置回退主域名 wms.wms.gztbyc.com) */
readonly VITE_FRONT_CONFIG_EXEMPT_HOSTS?: string
/** 本地开发:对象存储直传 CORS 绕过开关(`off` 关闭,默认开启;仅 dev 生效) */
readonly VITE_COS_DEV_PROXY?: string
/** 本地开发:`/cos-proxy` 代理目标存储桶(默认见 src/utils/cosDevProxyConfig.ts) */
readonly VITE_COS_DEV_PROXY_TARGET?: string
}
declare module '@/utils/auth' {
export function getToken(): string | undefined
export function setToken(token: string): void
export function removeToken(): void
}
declare module 'vue-virtual-scroller' {
export const RecycleScroller: any
}
declare module 'qrcode.vue' {
const QrcodeVue: any
export default QrcodeVue
}