From c9193a1795f6362d549e7c001fb6f8980ff71300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E7=86=B1?= Date: Sat, 3 Feb 2024 16:17:13 +0800 Subject: [PATCH] feat(core): set appVersion to package version (#1328) --- packages/core/src/types/const/const.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/types/const/const.ts b/packages/core/src/types/const/const.ts index 8c3e3812aa0..f5565b26bae 100644 --- a/packages/core/src/types/const/const.ts +++ b/packages/core/src/types/const/const.ts @@ -24,6 +24,7 @@ import { WrapStrategy, } from '../enum'; import type { IWorkbookData, IWorksheetData } from '../interfaces'; +import { version } from '../../../package.json'; /** * Used as an illegal range array return value @@ -72,7 +73,7 @@ export const DEFAULT_WORKBOOK: IWorkbookData = { id: '', sheetOrder: [], name: '', - appVersion: '', + appVersion: version, locale: LocaleType.ZH_CN, styles: {}, sheets: {},