Blame view

稻城亚丁小程序/uniapp/src/env.d.ts 583 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  /// <reference types="vite/client" />
  
  interface ImportMetaEnv {
    readonly VITE_API_BASE_URL?: string;
    readonly VITE_STATIC_BASE_URL?: string;
    /** H5 开发:为 "1" 时请求走当前页同源 + Vite 代理,VITE_API_BASE_URL 可为空 */
    readonly VITE_API_RELATIVE?: string;
  }
  
  interface ImportMeta {
    readonly env: ImportMetaEnv;
  }
  
  declare module '*.vue' {
    import { DefineComponent } from 'vue'
    // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
    const component: DefineComponent<{}, {}, any>
    export default component
  }