Commit c030567b38b85c1e7ff33baa633e8f6172caa248

Authored by Vben
1 parent 6d6e0a1b

chore: typo

types/global.d.ts
... ... @@ -7,7 +7,7 @@ import type {
7 7 } from 'vue';
8 8  
9 9 declare global {
10   - declare interface __APP_INFO__ {
  10 + const __APP_INFO__: {
11 11 pkg: {
12 12 name: string;
13 13 version: string;
... ... @@ -15,7 +15,7 @@ declare global {
15 15 devDependencies: Recordable<string>;
16 16 };
17 17 lastBuildTime: string;
18   - }
  18 + };
19 19 declare interface Window {
20 20 // Global vue app instance
21 21 __APP__: App<Element>;
... ...
vite.config.ts
... ... @@ -13,7 +13,7 @@ import pkg from &#39;./package.json&#39;;
13 13 import moment from 'moment';
14 14  
15 15 const { dependencies, devDependencies, name, version } = pkg;
16   -const APP_INFO = {
  16 +const __APP_INFO__ = {
17 17 pkg: { dependencies, devDependencies, name, version },
18 18 lastBuildTime: moment().format('YYYY-MM-DD HH:mm:ss'),
19 19 };
... ... @@ -67,7 +67,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig =&gt; {
67 67 __VUE_I18N_FULL_INSTALL__: false,
68 68 __INTLIFY_PROD_DEVTOOLS__: false,
69 69  
70   - __APP_INFO__: JSON.stringify(APP_INFO),
  70 + __APP_INFO__: JSON.stringify(__APP_INFO__),
71 71 },
72 72 css: {
73 73 preprocessorOptions: {
... ...