From ff50a2ea70131399655b8ca6c36e66d5885c3d8a Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Sun, 23 Feb 2020 23:50:43 +0800 Subject: [PATCH] bugfix: phone mode does not show category search close #5998 --- config/config.ts | 3 +-- src/components/GlobalHeader/index.less | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/config.ts b/config/config.ts index 7ee665bc..ddd35885 100644 --- a/config/config.ts +++ b/config/config.ts @@ -4,7 +4,6 @@ import slash from 'slash2'; import themePluginConfig from './themePluginConfig'; import proxy from './proxy'; import webpackPlugin from './plugin.config'; -import { primaryColor } from './defaultSettings'; const { pwa } = defaultSettings; @@ -145,7 +144,7 @@ export default { // Theme for antd: https://ant.design/docs/react/customize-theme-cn theme: { // ...darkTheme, - primaryColor, + primaryColor: defaultSettings.primaryColor, }, define: { REACT_APP_ENV: REACT_APP_ENV || false, diff --git a/src/components/GlobalHeader/index.less b/src/components/GlobalHeader/index.less index 83d66312..8d6b641a 100644 --- a/src/components/GlobalHeader/index.less +++ b/src/components/GlobalHeader/index.less @@ -96,5 +96,8 @@ margin-right: 0; } } + .search { + display: none; + } } }