前端
This commit is contained in:
29
frontend/app/web-gold/src/env.d.ts
vendored
Normal file
29
frontend/app/web-gold/src/env.d.ts
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_DEV_TOKEN: string
|
||||
readonly VITE_TENANT_ID: string
|
||||
readonly VITE_PROXY_TARGET: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
||||
|
||||
// 声明 ant-design-vue 的类型
|
||||
declare module 'ant-design-vue' {
|
||||
export const message: {
|
||||
success: (content: string) => void
|
||||
error: (content: string) => void
|
||||
warning: (content: string) => void
|
||||
info: (content: string) => void
|
||||
}
|
||||
export const Modal: any
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user