From c030567b38b85c1e7ff33baa633e8f6172caa248 Mon Sep 17 00:00:00 2001 From: Vben Date: Thu, 1 Apr 2021 01:07:48 +0800 Subject: [PATCH] chore: typo --- types/global.d.ts | 4 ++-- vite.config.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/global.d.ts b/types/global.d.ts index bbe09667..b38a2951 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -7,7 +7,7 @@ import type { } from 'vue'; declare global { - declare interface __APP_INFO__ { + const __APP_INFO__: { pkg: { name: string; version: string; @@ -15,7 +15,7 @@ declare global { devDependencies: Recordable; }; lastBuildTime: string; - } + }; declare interface Window { // Global vue app instance __APP__: App; diff --git a/vite.config.ts b/vite.config.ts index 485f84d1..77ec6dd6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,7 +13,7 @@ import pkg from './package.json'; import moment from 'moment'; const { dependencies, devDependencies, name, version } = pkg; -const APP_INFO = { +const __APP_INFO__ = { pkg: { dependencies, devDependencies, name, version }, lastBuildTime: moment().format('YYYY-MM-DD HH:mm:ss'), }; @@ -67,7 +67,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { __VUE_I18N_FULL_INSTALL__: false, __INTLIFY_PROD_DEVTOOLS__: false, - __APP_INFO__: JSON.stringify(APP_INFO), + __APP_INFO__: JSON.stringify(__APP_INFO__), }, css: { preprocessorOptions: {