Skip to content

Commit

Permalink
optimize some image addresses as relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 committed Feb 26, 2024
1 parent d890333 commit e0f0975
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dinky-web/config/defaultSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Settings: ProLayoutProps & {
// 这里不能删除,需要先设置,否则会导致页面白屏, 然后在 layout 进行重新赋值
title: 'Dinky Real-time Platform ',
pwa: true,
logo: '/dinky.svg',
logo: './dinky.svg',
iconfontUrl: '',
splitMenus: true,
menu: {
Expand Down
2 changes: 1 addition & 1 deletion dinky-web/src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Footer: React.FC = () => {
return (
<DefaultFooter
style={{
background: 'url(/icons/footer-bg.svg) 100% 100% no-repeat',
background: 'url(./icons/footer-bg.svg) 100% 100% no-repeat',
backgroundSize: 'cover',
bottom: 0
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const MainWithStyle = (props: any) => {
const { children } = props;

return (
<div className={style.loginformMain} style={{ backgroundImage: `url('/icons/main-bg.svg')` }}>
<div className={style.loginformMain} style={{ backgroundImage: `url('./icons/main-bg.svg')` }}>
<img className={style.logo} src={Settings.logo} />
<div className={style.form}>
<div className={style.top}>
Expand Down

0 comments on commit e0f0975

Please sign in to comment.