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 <evox@evomap.ai>

* chore: add changeset for copyright preferences fix

Co-Authored-By: EvoX <evox@evomap.ai>

---------

Co-authored-by: EvoX <evox@evomap.ai>
This commit is contained in:
俞可 · YU KE
2026-08-28 15:48:24 +08:00
committed by GitHub
co-authored by EvoX
parent 81f179ed4c
commit 390efe9f60
2 changed files with 11 additions and 1 deletions
@@ -0,0 +1,5 @@
---
'@vben/preferences': patch
---
fix(@vben/preferences): expose full copyright fields in appCopyrightPreferences
+6 -1
View File
@@ -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<Preferences>['copyright'];
export {