diff --git a/src/components/Sidebar/LayoutSetting.js b/src/components/Sidebar/LayoutSetting.js
index 7670480cf3b28fa1a11d794e264afda5a32a18da..f4947402b7f27c74515e455cf335e004ac7e73bd 100644
--- a/src/components/Sidebar/LayoutSetting.js
+++ b/src/components/Sidebar/LayoutSetting.js
@@ -1,3 +1,4 @@
+import { Tooltip } from 'antd';
 import React from 'react';
 import NavSate from './navState';
 
@@ -20,24 +21,22 @@ const LayoutSetting = ({ value, onChange }) => {
             margin: 8,
           }}
         >
-          
+          
         
       ))}
-      
-        
-      
+      
+        
+          
+        
+      
     
   );
 };
diff --git a/src/components/Sidebar/ThemeColor.less b/src/components/Sidebar/ThemeColor.less
index 9170eca31f1d9eae0d5ecd20144ace5b17cc995f..9dd141b423f36d52f327421e5322c0afc4621acf 100644
--- a/src/components/Sidebar/ThemeColor.less
+++ b/src/components/Sidebar/ThemeColor.less
@@ -19,7 +19,7 @@
       width: 18px;
       height: 18px;
       margin: 4px;
-      border: 2px solid  hsl(90, 100%, 50%);
+      border: 2px solid hsl(90, 100%, 50%);
       box-shadow: 0 0 4px 0 hsl(90, 100%, 50%);
     }
   }
diff --git a/src/components/Sidebar/index.js b/src/components/Sidebar/index.js
index a1999753824d7bdb1c50a30e419c56fedad99e8a..1a538168f4243d71677f7de72dd03a38a4106307 100644
--- a/src/components/Sidebar/index.js
+++ b/src/components/Sidebar/index.js
@@ -57,7 +57,9 @@ class Sidebar extends PureComponent {
     const propsState = this.propsToState(props);
     this.state = { ...this.defaultstate, ...propsState };
   }
-
+  componentDidMount() {
+    this.colorChange(this.state.themeColor);
+  }
   getLayOutSetting = () => {
     const { layout } = this.state;
     return [
@@ -134,29 +136,37 @@ class Sidebar extends PureComponent {
     this.changeSetting('collapse', !this.state.collapse);
   };
   colorChange = color => {
-    window.less
-      .modifyVars({
-        '@primary-color': color,
-      })
-      .then(() => {})
-      .catch(() => {
-        message.error(`Failed to update theme`);
-      });
     this.changeSetting('themeColor', color);
+    this.setState(
+      {
+        themeColor: color,
+      },
+      () => {
+        const hideMessage = message.loading('正在编译主题!', 0);
+        window.less
+          .modifyVars({
+            '@primary-color': color,
+          })
+          .then(() => {
+            hideMessage();
+          })
+          .catch(() => {
+            message.error(`Failed to update theme`);
+          });
+      }
+    );
   };
   render() {
     const radioStyle = {
       display: 'block',
     };
     return (
-      <>
-        
-          
-            

-          
+      
+        
+          
 
         
         
-      >
+