Browse Source

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>
pull/8317/head
俞可 · YU KE 1 month ago
committed by GitHub
parent
commit
390efe9f60
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/tidy-pandas-copyright-fields.md
  2. 7
      packages/preferences/src/index.ts

5
.changeset/tidy-pandas-copyright-fields.md

@ -0,0 +1,5 @@
---
'@vben/preferences': patch
---
fix(@vben/preferences): expose full copyright fields in appCopyrightPreferences

7
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<Preferences>['copyright'];
export {

Loading…
Cancel
Save