From 390efe9f604d7994f82156b89b0a76f61788a5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=9E=E5=8F=AF=20=C2=B7=20YU=20KE?= <1798456934@qq.com> Date: Fri, 28 Aug 2026 15:48:24 +0800 Subject: [PATCH] fix(@vben/preferences): expose full copyright fields in appCopyrightPreferences (#8309) * fix(@vben/preferences): expose full copyright fields in appCopyrightPreferences appCopyrightPreferences only carried icp and icpLink, so apps spreading it into their preferences.copyright could not override companyName, companySiteLink, date, enable, or settingShow. Align the exported default with the full CopyrightPreferences shape used by the settings panel. Co-Authored-By: EvoX * chore: add changeset for copyright preferences fix Co-Authored-By: EvoX --------- Co-authored-by: EvoX --- .changeset/tidy-pandas-copyright-fields.md | 5 +++++ packages/preferences/src/index.ts | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/tidy-pandas-copyright-fields.md diff --git a/.changeset/tidy-pandas-copyright-fields.md b/.changeset/tidy-pandas-copyright-fields.md new file mode 100644 index 000000000..978bfc0ae --- /dev/null +++ b/.changeset/tidy-pandas-copyright-fields.md @@ -0,0 +1,5 @@ +--- +'@vben/preferences': patch +--- + +fix(@vben/preferences): expose full copyright fields in appCopyrightPreferences diff --git a/packages/preferences/src/index.ts b/packages/preferences/src/index.ts index d97bca1e6..f69adfc1d 100644 --- a/packages/preferences/src/index.ts +++ b/packages/preferences/src/index.ts @@ -22,10 +22,15 @@ function definePreferencesExtension< return extension; } -/** 应用级 ICP 备案配置,供各 app 的 preferences 覆盖使用 */ +/** 应用级版权配置,供各 app 的 preferences 覆盖使用 */ const appCopyrightPreferences = { + companyName: 'Vben', + companySiteLink: 'https://www.vben.pro', + date: '2024', + enable: true, icp: '闽ICP备19024351号', icpLink: 'https://beian.miit.gov.cn/', + settingShow: true, } satisfies DeepPartial['copyright']; export {