lanjianrong пре 5 година
родитељ
комит
2adcf7c91b
2 измењених фајлова са 6 додато и 0 уклоњено
  1. 2 0
      src/app.tsx
  2. 4 0
      src/global.less

+ 2 - 0
src/app.tsx

@@ -3,6 +3,7 @@ import { history } from 'umi'
 import RightContent from '@/components/RightContent'
 import { PERMISSION_NEED_PATH } from './utils/consts/customer'
 import { message } from 'antd'
+import logo from '../public/logo.svg'
 
 const loginPath = '/user/login'
 
@@ -47,6 +48,7 @@ export async function getInitialState() {
 
 export const layout = ({ initialState, setInitialState }) => {
   return {
+    logo,
     rightContentRender: () => <RightContent />,
     disableContentMargin: false,
     waterMarkProps: {

+ 4 - 0
src/global.less

@@ -54,6 +54,10 @@ body,
   margin-bottom: 0;
 }
 
+.ant-pro-top-nav-header-logo h1 {
+  font-weight: 600;
+  font-size: 18px;
+}
 canvas {
   display: block;
 }