Ant Design Pro 设置布局左上角 logo 图片
Ant Design React About 286 wordsdefaultSettings.ts
在config/defaultSettings.ts文件中,设置logo字段,可以是相对路径,可以是完整的https路径,也可以是base64后的字符串。
const Settings: ProLayoutProps & {
pwa?: boolean;
logo?: string;
} = {
logo: '/favicon.ico',
}
文档
https://pro.ant.design/zh-CN/docs/title-landing#%E6%A0%87%E9%A2%98%E5%92%8C-logo
Views: 4 · Posted: 2026-09-23
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...