Commit c030567b38b85c1e7ff33baa633e8f6172caa248

Authored by Vben
1 parent 6d6e0a1b

chore: typo

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