mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2026-10-06 14:23:19 +08:00
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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@vben/preferences': patch
|
||||
---
|
||||
|
||||
fix(@vben/preferences): expose full copyright fields in appCopyrightPreferences
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user