diff --git a/src/components/SettingDarwer/index.js b/src/components/SettingDarwer/index.js index 9988ae55ecd384638a3950406a9dad641ff9c458..ac6ea17251c1e919dda98201e505faa10846b81c 100644 --- a/src/components/SettingDarwer/index.js +++ b/src/components/SettingDarwer/index.js @@ -23,7 +23,9 @@ class SettingDarwer extends PureComponent { componentDidMount() { const { themeColor, colorWeak } = this.props.setting; if (themeColor !== '#1890FF') { - this.colorChange(themeColor); + window.less.refresh().then(() => { + this.colorChange(themeColor); + }); } if (colorWeak === 'open') { document.body.className = 'colorWeak';